Created
May 3, 2015 18:47
-
-
Save apremalal/39a215c060572e21fbfe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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