Geofencing

Massive geofencing service, using multiple polygons.

Web services

Geofencing API documentation, available via HTTP-JSON/XML service.

URL base service:

  • HTTP requests in POST
  • Response in JSON / XML format

Geofencing masive service: get the markers that are inside a list of polygons / circles

REQUEST

Example:

https://lb.cercalia.com/services/json?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]&key=YOUR_API_KEY
ParameterDescription
geomsShape list, separated by commas. Shape format: `[wkt
srsCoordinate system used in geoms. Default: EPSG:4326.
molistMarker list, in this format: `[X,Y
mocsCoordinate 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": {
                        "$valor": "CIRCLE(2.2090 41.4141, 12)"
                    },
                    "molist": {
                        "num": "1",
                        "mo": [
                            {
                                "id": "P1",
                                "coord": {
                                    "x": "1.984E-5",
                                    "y": "3.7454E-4"
                                }
                            }
                        ]
                    }
                },
                {
                    "id": "ID2",
                    "wkt": {
                        "$valor": "CIRCLE(2.3090 41.4141, 5)"
                    },
                    "molist": {
                        "num": "1",
                        "mo": [
                            {
                                "id": "P2",
                                "coord": {
                                    "x": "2.074E-5",
                                    "y": "3.7454E-4"
                                }
                            }
                        ]
                    }
                }
            ]
        },
        "server": {
            "$valor": "ws.cercalia.com"
        },
        "instance": {
            "$valor": "http://cercalia-lbs-both-lines"
        }
    }
}
Last modified December 19, 2024: feat: markdown api http all (d8c23c1)