POST [root]/sources/[key]/features
This endpoint returns a collection of features from a layer-source which includes vector geometry and it associated attributes. This endpoint is only valid for vector layer-sources. NOTE: This endpoint should essentially be a GET, however due to the size restrictions of a GET verb and potentially sizable Parameters on this request, it is a POST.
Response Type
application/json
Example URL
https://mapzania.com/mz/sources/LONDONPOI_SHP
Parameters
Name | Required | Description |
---|---|---|
key | Yes | The key of the layer-source. |
filters | No | A JSON array of filter objects that must be applied to the features before they are returned. Filters only return a subset of the list of features, the do not change them in any way. |
adapters | No | A JSON array of adapter objects that must be applied to the features before they are returned. Adapters can change the data returned. Examples include: adding columns, changing geometry types or projecting geometry to a different co-ordinate system. |
Example Results
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-0.08583,
51.50575
]
},
"properties": {
"Descriptio": "GB-London<br /> <br />",
"Name": "London Dungeon",
"Id": 1
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-0.14917,
51.51434
]
},
"properties": {
"Descriptio": "GB-London<br /> <br />",
"Name": "West One Shopping Centre",
"Id": 16
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-0.1269,
51.51528
]
},
"properties": {
"Descriptio": "GB-London<br /> <br />",
"Name": "Covent Garden",
"Id": 30
}
}
],
"crs": null,
"bbox": [
-0.1569,
51.47781,
0.0,
51.5227
]
}