Skip to content

Instantly share code, notes, and snippets.

@apremalal
Created May 3, 2015 18:47
Show Gist options
  • Save apremalal/39a215c060572e21fbfe to your computer and use it in GitHub Desktop.
Save apremalal/39a215c060572e21fbfe to your computer and use it in GitHub Desktop.
<eventFormatter xmlns="http://wso2.org/carbon/eventformatter" name="gpsOutputEventFormatter" statistics="enable" trace="enable">
<from streamName="isWithinOutputStream" version="1.0.0" />
<mapping customMapping="enable" type="json">
<inline>
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
{{lattitude}},
{{longitude}}
]
},
"properties": {
"timeStamp": "{{correlation_timeStamp}}",
"deviceid": "{{deviceId}}",
"iswithin": {{iswithin}}
}
}
</inline>
</mapping>
<to eventAdaptorName="HttpEventAdaptor" eventAdaptorType="http">
<property name="http.username" />
<property name="http.password" />
<property name="http.headers" />
<property name="http.url">http://localhost:9764/geo-portal/geo/cep</property>
</to>
</eventFormatter>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment