<?xml version="1.0" encoding="UTF-8"?>
<eventPublisher name="Geo-Publisher-WebSocketLocal-FusedSpacialEvent"
                statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventpublisher">
    <from streamName="org.wso2.geo.FusedSpatialEvent" version="1.0.0"/>
    <mapping customMapping="enable" type="json">
        <inline>{
            "messageType" : "Point",
            "type": "Feature",
            "id": {{id}},
            "deviceId": {{id}},
            "deviceType": {{type}},
            "properties": {
            "speed": {{speed}},
            "heading": {{heading}},
            "state": {{state}},
            "information": {{information}},
            "notify": {{notify}},
            "type": {{type}}
            },
            "geometry": {
            "type": "Point",
            "coordinates": [{{longitude}},{{latitude}}]
            }
            }</inline>
    </mapping>
    <to eventAdapterType="secured-websocket"/>
</eventPublisher>
