Surface calculation from a GPS track

Get a polygon and surface calculation from a GPS track.

Servicios web

Surface calculation API Surface calculation from a GPS track documentation, available via HTTP-JSON/XML service.

URL base service:

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

Surface calculation from a vehicle GPS track

Calculate the area covered by a vehicle GPS track. Optionally, several polygons can be attached, so that the area covered over each of them is calculated. If polygons are not included, the service returns them calculated.

Request

Example (calculates the area of ​​a track additionally using a polygon, with a 2.55 meters buffer):

https://lb.cercalia.com/services/json?cmd=areatrack&srs=epsg:4326&buffer=50&track1=[2.809462369338251,41.95580597584394@0,45@@10],[2.8098092256656186,41.95597581805723@0,45@@10],[2.8098885243929765,41.9559493840349@0,45@@10],[2.810016100173981,41.95592779891741@0,45@@10],[2.810115304067983,41.9559237253621@0,45@@10],[2.8101944970925485,41.95592797148458@0,45@@10],[2.8102577757390623,41.955898459241155@0,45@@10],[2.8106174608768644,41.955664327755116@0,45@@10],[2.810639961685843,41.955646972867655@0,45@@10],[2.810686117995519,41.95561145437738@0,45@@10],[2.8107168352826593,41.955588204605995@0,45@@10],[2.810743223084221,41.95556823965039@0,45@@10],[2.810760534768161,41.95555514537633@0,45@@10],[2.811028723713235,41.955334236290554@0,45@@10],[2.810966668224175,41.955184105834775@0,45@@10],[2.810823920109881,41.954838741708144@0,45@@10],[2.810812304527589,41.95484141558212@0,45@@10],[2.8092156547559055,41.955209046656115@0,45@@10],[2.809462369338251,41.95580597584394@0,45@@10]&polygon1=MULTIPOLYGON (((2.809462369338251 41.95580597584394, 2.8098092256656186 41.95597581805723, 2.8098885243929765 41.9559493840349, 2.810016100173981 41.95592779891741, 2.810115304067983 41.9559237253621, 2.8101944970925485 41.95592797148458, 2.8102577757390623 41.955898459241155, 2.8106174608768644 41.955664327755116, 2.810639961685843 41.955646972867655, 2.810686117995519 41.95561145437738, 2.8107168352826593 41.955588204605995, 2.810743223084221 41.95556823965039, 2.810760534768161 41.95555514537633, 2.811028723713235 41.955334236290554, 2.810966668224175 41.955184105834775, 2.810823920109881 41.954838741708144, 2.810812304527589 41.95484141558212, 2.8092156547559055 41.955209046656115, 2.809462369338251 41.95580597584394)))&geometrysrs=epsg:4326&key=YOUR_API_KEY

Where:

ParameterDescription
track1, track2..., tracknComma separated list of markers (coordinates). Maximum: 5000 markers. Each marker (coordinate) has the following format: [X1,Y2...]. Optionally, multiple lists of tracks can be included. The API will return the calculation for all of them with respect to each polygon included.
srsCoordinate system used in &track=. Default: EPSG:4326.
geometrysrsCoordinate system of the polygons returned. Default: same as used in &srs=.
polygon1, polygon2...,polygonnPolygons or multi-polygons in WKT format. If polygons are not included, the service returns them calculated using the GPS track and a &buffer=.
bufferDistance in meters to use around the track.

Response

{
    "cercalia": {
        "cmd": "areatrack",
        "version": "1",
        "track": {
            "geometry": {
                "area": "11820.36",
                "id": "1",
                "wkt": {
                    "$valor": "POLYGON ((2.8094624 41.955806, 2.8098093 41.9559759, 2.8098885 41.9559494, 2.8100161 41.9559278, 2.8101153 41.9559238, 2.8101944 41.955928, 2.8102578 41.9558984, 2.8106174 41.9556643, 2.8106399 41.955647, 2.8106861 41.9556115, 2.8107168 41.9555882, 2.8107432 41.9555682, 2.8107605 41.9555551, 2.8110288 41.9553343, 2.8109667 41.9551841, 2.8108239 41.9548387, 2.8108123 41.9548414, 2.8092157 41.955209, 2.8094624 41.955806))"
                }
            }
        },
        "server": {
            "$valor": "ws.cercalia.com"
        },
        "instance": {
            "$valor": "http://cercalia-lbs-both-lines"
        }
    }
}
Last modified December 31, 2024: fix: response json geocoding (8b989c0)