The API is work in progress.
This basic structure can be extended starting from the environment variable PREFIX
which by default /
(βοΈ Work β TODO π§ Work in Progress)
Status | Method | Path | Return | Description |
---|---|---|---|---|
βοΈ | GET | / | html | default demo map page if enabled by env var DEMO_PAGE=true |
βοΈ | GET | /status | object | service status, versions, datasets |
βοΈ | GET | /datasets | array | list available datasets and their attributes |
βοΈ | GET | /datasets/:datasetId | object | search dataset by id |
βοΈ | GET | /datasets/:lon/:lat | array | search dataset contains lon ,lat |
βοΈ | GET | /:datasetId | object | show attributes of a certain dataset by id |
βοΈ | GET | /:datasetId/:lon/:lat | array | get single location value of dataset, densify not supported |
βοΈ | GET | /:datasetId/:locations | array | locations is a string (format: `lon,lat |
βοΈ | POST | /:datasetId/lonlat | arrays | accept array or object in body |
βοΈ | POST | /:datasetId/locations | arrays | accept array or object of locations in body (format is [[lon,lat],[lon,lat],[lon,lat]] ) |
βοΈ | POST | /:datasetId/geometry | object | geojson Point or LineString in body (support feature/geometry/f.collection) |
βοΈ | GET | /metadata/:locations | object | return info about direction, length, centroid, middlepoint of locations |
βοΈ | POST | /metadata/geometry | object | return info about direction, length, centroid, middlepoint of geometry |
Status | Parameter | Default | Description |
---|---|---|---|
βοΈ | precision | input |
rounded to digits decimal precision |
βοΈ | format | input |
output format conversion |
βοΈ | densify | input |
enable densification of points in the result |
βοΈ | simplify | input |
enable simplication geometry of the result |
β | height | false | add vertical distance from the ground(only input has elevation) |
Some behaviors to know about parameters are that:
precision
anddensify
parameters is only supported by endpoints and formats that return coordinatesdatasetId
can have the valuedefault
to referring the main dataset defined in config- from version v1.6.1
/<datasetId>/...
is the same of/datasets/<datasetId>/...
/datasets/
is implicit.
If the format
parameter is not specified the default behavior is to output the same format as the input
- input format can be specified by
Content-type:
header in request - output format can be specified by
format
parameter
the support for various input and output formats is summarized in the table
Value | In | Out | Description |
---|---|---|---|
input |
βοΈ | βοΈ | means the same format as the input data |
array |
βοΈ | π§ | each location is Array and a Z dimension as value [lon,lat,val] |
json |
βοΈ | π§ | each location is Object having lon ,lat and val attributes |
geojson |
βοΈ | π§ | standard GeoJSON objects Feature , Geometry with a Z dimension in coordinates as value |
polyline |
π§ | βοΈ | Encoded Polyline Algorithm |
gpx |
π§ | βοΈ | GPS eXchange Format is an XML textual format |
csv |
β | β | Comma-separated values is an textual format |
kml |
β | β | Keyhole Markup Language is an XML format for Google Earth |
each endpoint has its own default format, for example endpoint /dataset/lon/lat
return a simple array of one value.