For more information about SpatiallyDB, please visit Spatially Labs
Request
POST https://api.spatially.com/spatialdb/layer
Headers:
Content-Type: application/json
Authorization: Bearer ACCESS_TOKEN_GENERATED_FROM_API
Body:
{
"name": "layer-name"
}
Response
{
"id": "...",
"name": "layer-name"
}
Request
GET https://api.spatially.com/spatialdb/layer/{id}
Headers:
Content-Type: application/json
Authorization: Bearer ACCESS_TOKEN_GENERATED_FROM_API
Response
{
"id": "...",
"name": "layer-name"
}
Request
GET https://api.spatially.com/spatialdb/layers
Headers:
Content-Type: application/json
Authorization: Bearer ACCESS_TOKEN_GENERATED_FROM_API
Response
[
{
"id": "...",
"name": "layer-name"
}
]
Request
DELETE https://api.spatially.com/spatialdb/layer/{id}
Headers:
Content-Type: application/json
Authorization: Bearer ACCESS_TOKEN_GENERATED_FROM_API
Request
POST https://api.spatially.com/spatialdb/feature
Headers:
Content-Type: application/json
Authorization: Bearer ACCESS_TOKEN_GENERATED_FROM_API
Body:
{
"layer": "{id}",
"feature": {
// valid GeoJSON feature
"type": "Feature",
"properties": {
"key": "value"
},
"geometry": {
"type": "Point",
"coordinates": [
-76.2890625,
39.639537564366684
]
}
}
}
Response
{
"id": "..."
}
Request
GET https://api.spatially.com/spatialdb/feature/{id}
Headers:
Content-Type: application/json
Authorization: Bearer ACCESS_TOKEN_GENERATED_FROM_API
Response
{
"type": "Feature",
"properties": {
"key": "value"
},
"geometry": {
"type": "Point",
"coordinates": [-76.2890625, 39.639537564366684]
}
}
Request
POST https://api.spatially.com/spatialdb/features
Headers:
Content-Type: application/json
Authorization: Bearer ACCESS_TOKEN_GENERATED_FROM_API
Body:
{
"layer": "{id}"
}
Response
[
{
"type": "Feature",
"properties": {
"key": "value"
},
"geometry": {
"type": "Point",
"coordinates": [-76.2890625, 39.639537564366684]
}
}
]
Request
POST https://api.spatially.com/spatialdb/features
Headers:
Content-Type: application/json
Authorization: Bearer ACCESS_TOKEN_GENERATED_FROM_API
Body:
{
"layer": "{id}"
"spatialConstraint": {
"wkt": "POLYGON (...)",
"type": 0
}
}
// Or if doing a buffer query
{
"layer": "{id}"
"spatialConstraint": {
"wkt": "POINT (...)",
"radius": 100, // in meters
"type": 0
}
}
Response
[
{
"type": "Feature",
"properties": {
"key": "value"
},
"geometry": {
"type": "Point",
"coordinates": [-76.2890625, 39.639537564366684]
}
}
]
Request
PUT https://api.spatially.com/spatialdb/feature/{id}
Headers:
Content-Type: application/json
Authorization: Bearer ACCESS_TOKEN_GENERATED_FROM_API
Body:
{
"properties": {
"key2": "value2"
}
}
Response
{
"type": "Feature",
"properties": {
"key": "value",
"key2": "value2"
},
"geometry": {
"type": "Point",
"coordinates": [-76.2890625, 39.639537564366684]
}
}
Request
DELETE https://api.spatially.com/spatialdb/feature/{id}
Headers:
Content-Type: application/json
Authorization: Bearer ACCESS_TOKEN_GENERATED_FROM_API