Web services
Geofencing API documentation, available via HTTP-JSON/XML service.
URL base service:
- JSON: https://lb.cercalia.com/services/json?key=<clave API*>
- XML: https://lb.cercalia.com/services/xmlgeo?key=<clave API*>
* API KEY. Same KEY used in maps API js
HTTP requests in GET or POST
Response in JSON / XML format
Geofencing masive service: get the markers that are inside a list of polygons / circles
REQUEST
Example:
&cmd=insidegeoms&geoms=[CIRCLE(2.2090%2041.4141,%2012)|ID1],%20[CIRCLE(2.3090%2041.4141,%205)|ID2]&molist=[2.2090,41.4141|P1],%20[2.3090,41.4141|P2]
GEOMS |
Shape list, separated by commas. Shape format: [wkt|id] Where:
|
SRS |
Coordinate system used in GEOMS Default EPSG:4326 |
MOLIST |
Marker list, in this format: [X,Y|ID] |
MOCS |
Coordinate system used in MOLIST Default EPSG:4326 |
RESPONSE
For every shape, a list of markers that are inside the polygon / circle.
Example:
<cercalia cmd="insidegeoms" version="1">
<insidegeoms>
<geometry id="ID1">
<wkt>CIRCLE(2.2090 41.4141, 12)</wkt>
<molist num="1">
<mo id="P1">
<coord x="2.209" y="41.4141"/>
</mo>
</molist>
</geometry>
<geometry id="ID2">
<wkt>CIRCLE(2.3090 41.4141, 5)</wkt>
<molist num="1">
<mo id="P2">
<coord x="2.309" y="41.4141"/>
</mo>
</molist>
</geometry>
</insidegeoms>
<server>http://cercalia-tomcat-lbs-instance1:8080</server>
</cercalia>