Spatial API
Retrieve a list of locations or a specific location by ID.
Optional ID of the location to retrieve.
Number of items to skip.
0
Maximum number of items to return.
25
Field by which to sort.
Sort order, 'asc' or 'desc'.
GET /spatial/v1/locations HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"data": {
"locations": [
{
"location_id": "loc_123",
"name": "Location 1",
"description": "First location"
},
{
"location_id": "loc_124",
"name": "Location 2",
"description": "Second location"
}
],
"pagination": {
"current_results": {
"from": 1,
"to": 25
},
"total_results": 100
}
},
"identifier": "get_locations_successful"
}
Create multiple locations.
Name of the location.
Description of the location.
POST /spatial/v1/locations HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 38
[
{
"name": "text",
"description": "text"
}
]
{
"success": true,
"data": {
"locations": [
{
"location_id": "loc_123"
},
{
"location_id": "loc_124"
}
]
},
"identifier": "create_locations_successful"
}
Update multiple locations.
ID of the location to update.
Name of the location.
Description of the location.
PUT /spatial/v1/locations HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 59
[
{
"location_id": "text",
"name": "text",
"description": "text"
}
]
{
"success": true,
"data": {
"locations": [
{
"location_id": "loc_123"
},
{
"location_id": "loc_124"
}
]
},
"identifier": "update_locations_successful"
}
Retrieve layers within a location, optionally filtered by layer ID.
ID of the location to retrieve layers from.
Optional ID of the layer to retrieve.
Number of items to skip.
0
Maximum number of items to return.
25
Field by which to sort.
Sort order, 'asc' or 'desc'.
GET /spatial/v1/layers HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"data": {
"layers": [
{
"layer_id": "layer_123",
"location_id": "loc_123",
"name": "Layer 1"
},
{
"layer_id": "layer_124",
"location_id": "loc_123",
"name": "Layer 2"
}
],
"pagination": {
"current_results": {
"from": 1,
"to": 25
},
"total_results": 100
}
},
"identifier": "get_layers_successful"
}
Create multiple layers.
ID of the location to associate the layer with.
Name of the layer.
POST /spatial/v1/layers HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 38
[
{
"location_id": "text",
"name": "text"
}
]
{
"success": true,
"data": {
"layers": [
{
"layer_id": "layer_123"
},
{
"layer_id": "layer_124"
}
]
},
"identifier": "create_layers_successful"
}
Update multiple layers.
ID of the layer to update.
Name of the layer.
PUT /spatial/v1/layers HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 35
[
{
"layer_id": "text",
"name": "text"
}
]
{
"success": true,
"data": {
"layers": [
{
"layer_id": "layer_123"
},
{
"layer_id": "layer_124"
}
]
},
"identifier": "update_layers_successful"
}
Retrieve spaces within a location and layer, optionally filtered by space ID.
ID of the location to retrieve spaces from.
ID of the layer to retrieve spaces from.
Optional ID of the space to retrieve.
Number of items to skip.
0
Maximum number of items to return.
25
Field by which to sort.
Sort order, 'asc' or 'desc'.
Return geometries in GeoJson format.
false
GET /spatial/v1/spaces HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"data": {
"spaces": [
{
"space_id": "space_123",
"location_id": "loc_123",
"layer_id": "layer_123",
"name": "Space 1",
"geometry": {}
},
{
"space_id": "space_124",
"location_id": "loc_123",
"layer_id": "layer_123",
"name": "Space 2",
"geometry": {}
}
],
"pagination": {
"current_results": {
"from": 1,
"to": 25
},
"total_results": 100
}
},
"identifier": "get_spaces_successful"
}
Create multiple spaces.
ID of the location to associate the space with.
ID of the layer to associate the space with.
Name of the space.
GeoJSON geometry for the space.
POST /spatial/v1/spaces HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 70
[
{
"location_id": "text",
"layer_id": "text",
"name": "text",
"geometry": {}
}
]
{
"success": true,
"data": {
"spaces": [
{
"space_id": "space_123"
},
{
"space_id": "space_124"
}
]
},
"identifier": "create_spaces_successful"
}
Update multiple spaces.
ID of the space to update.
Name of the space.
GeoJSON geometry for the space.
PUT /spatial/v1/spaces HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 49
[
{
"space_id": "text",
"name": "text",
"geometry": {}
}
]
{
"success": true,
"data": {
"spaces": [
{
"space_id": "space_123"
},
{
"space_id": "space_124"
}
]
},
"identifier": "update_spaces_successful"
}
Retrieve rooms within a location and layer, optionally filtered by room ID.
ID of the location to retrieve rooms from.
ID of the layer to retrieve rooms from.
Optional ID of the room to retrieve.
Number of items to skip.
0
Maximum number of items to return.
25
Field by which to sort.
Sort order, 'asc' or 'desc'.
Return geometries in GeoJson format.
false
GET /spatial/v1/rooms HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"data": {
"rooms": [
{
"room_id": "room_123",
"location_id": "loc_123",
"layer_id": "layer_123",
"name": "Room 1",
"geometry": {}
},
{
"room_id": "room_124",
"location_id": "loc_123",
"layer_id": "layer_123",
"name": "Room 2",
"geometry": {}
}
],
"pagination": {
"current_results": {
"from": 1,
"to": 25
},
"total_results": 100
}
},
"identifier": "get_rooms_successful"
}
Create multiple rooms.
ID of the location to associate the room with.
ID of the layer to associate the room with.
Name of the room.
GeoJSON geometry for the room.
POST /spatial/v1/rooms HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 70
[
{
"location_id": "text",
"layer_id": "text",
"name": "text",
"geometry": {}
}
]
{
"success": true,
"data": {
"rooms": [
{
"room_id": "room_123"
},
{
"room_id": "room_124"
}
]
},
"identifier": "create_rooms_successful"
}
Update multiple rooms.
ID of the room to update.
Name of the room.
GeoJSON geometry for the room.
PUT /spatial/v1/rooms HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 48
[
{
"room_id": "text",
"name": "text",
"geometry": {}
}
]
{
"success": true,
"data": {
"rooms": [
{
"room_id": "room_123"
},
{
"room_id": "room_124"
}
]
},
"identifier": "update_rooms_successful"
}
Retrieve areas within a location and layer, optionally filtered by area ID.
ID of the location to retrieve areas from.
ID of the layer to retrieve areas from.
Optional ID of the area to retrieve.
Number of items to skip.
0
Maximum number of items to return.
25
Field by which to sort.
Sort order, 'asc' or 'desc'.
Return geometries in GeoJson format.
false
GET /spatial/v1/areas HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"data": {
"areas": [
{
"area_id": "area_123",
"location_id": "loc_123",
"layer_id": "layer_123",
"name": "Area 1",
"geometry": {}
},
{
"area_id": "area_124",
"location_id": "loc_123",
"layer_id": "layer_123",
"name": "Area 2",
"geometry": {}
}
],
"pagination": {
"current_results": {
"from": 1,
"to": 25
},
"total_results": 100
}
},
"identifier": "get_areas_successful"
}
Create multiple areas.
ID of the location to associate the area with.
ID of the layer to associate the area with.
Name of the area.
GeoJSON geometry for the area.
POST /spatial/v1/areas HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 70
[
{
"location_id": "text",
"layer_id": "text",
"name": "text",
"geometry": {}
}
]
{
"success": true,
"data": {
"areas": [
{
"area_id": "area_123"
},
{
"area_id": "area_124"
}
]
},
"identifier": "create_areas_successful"
}
Update multiple areas.
ID of the area to update.
Name of the area.
GeoJSON geometry for the area.
PUT /spatial/v1/areas HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 48
[
{
"area_id": "text",
"name": "text",
"geometry": {}
}
]
{
"success": true,
"data": {
"areas": [
{
"area_id": "area_123"
},
{
"area_id": "area_124"
}
]
},
"identifier": "update_areas_successful"
}
Retrieve zones within a location and layer, optionally filtered by zone ID.
ID of the location to retrieve zones from.
ID of the layer to retrieve zones from.
Optional ID of the zone to retrieve.
Number of items to skip.
0
Maximum number of items to return.
25
Field by which to sort.
Sort order, 'asc' or 'desc'.
GET /spatial/v1/zones HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"data": {
"zones": [
{
"zone_id": "zone_123",
"location_id": "loc_123",
"layer_id": "layer_123",
"name": "Zone 1"
},
{
"zone_id": "zone_124",
"location_id": "loc_123",
"layer_id": "layer_123",
"name": "Zone 2"
}
],
"pagination": {
"current_results": {
"from": 1,
"to": 25
},
"total_results": 100
}
},
"identifier": "get_zones_successful"
}
Create multiple zones.
ID of the location to associate the zone with.
ID of the layer to associate the zone with.
Name of the zone.
POST /spatial/v1/zones HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 56
[
{
"location_id": "text",
"layer_id": "text",
"name": "text"
}
]
{
"success": true,
"data": {
"zones": [
{
"zone_id": "zone_123"
},
{
"zone_id": "zone_124"
}
]
},
"identifier": "create_zones_successful"
}
Update multiple zones.
ID of the zone to update.
Name of the zone.
PUT /spatial/v1/zones HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 34
[
{
"zone_id": "text",
"name": "text"
}
]
{
"success": true,
"data": {
"zones": [
{
"zone_id": "zone_123"
},
{
"zone_id": "zone_124"
}
]
},
"identifier": "update_zones_successful"
}
Retrieve clusters within a location and layer, optionally filtered by cluster ID.
ID of the location to retrieve clusters from.
ID of the layer to retrieve clusters from.
Optional ID of the cluster to retrieve.
Number of items to skip.
0
Maximum number of items to return.
25
Field by which to sort.
Sort order, 'asc' or 'desc'.
GET /spatial/v1/clusters HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"data": {
"clusters": [
{
"cluster_id": "cluster_123",
"location_id": "loc_123",
"layer_id": "layer_123",
"name": "Cluster 1"
},
{
"cluster_id": "cluster_124",
"location_id": "loc_123",
"layer_id": "layer_123",
"name": "Cluster 2"
}
],
"pagination": {
"current_results": {
"from": 1,
"to": 25
},
"total_results": 100
}
},
"identifier": "get_clusters_successful"
}
Create multiple clusters.
ID of the location to associate the cluster with.
ID of the layer to associate the cluster with.
Name of the cluster.
POST /spatial/v1/clusters HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 56
[
{
"location_id": "text",
"layer_id": "text",
"name": "text"
}
]
{
"success": true,
"data": {
"clusters": [
{
"cluster_id": "cluster_123"
},
{
"cluster_id": "cluster_124"
}
]
},
"identifier": "create_clusters_successful"
}
Update multiple clusters.
ID of the cluster to update.
Name of the cluster.
PUT /spatial/v1/clusters HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 37
[
{
"cluster_id": "text",
"name": "text"
}
]
{
"success": true,
"data": {
"clusters": [
{
"cluster_id": "cluster_123"
},
{
"cluster_id": "cluster_124"
}
]
},
"identifier": "update_clusters_successful"
}
Retrieve circulation within a location and layer, optionally filtered by circulation ID.
ID of the location to retrieve circulation from.
ID of the layer to retrieve circulation from.
Optional ID of the circulation to retrieve.
Number of items to skip.
0
Maximum number of items to return.
25
Field by which to sort.
Sort order, 'asc' or 'desc'.
Return geometries in GeoJson format.
false
GET /spatial/v1/circulation HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"data": {
"circulation": [
{
"circulation_id": "circulation_123",
"location_id": "loc_123",
"layer_id": "layer_123",
"name": "Circulation 1",
"geometry": {}
},
{
"circulation_id": "circulation_124",
"location_id": "loc_123",
"layer_id": "layer_123",
"name": "Circulation 2",
"geometry": {}
}
],
"pagination": {
"current_results": {
"from": 1,
"to": 25
},
"total_results": 100
}
},
"identifier": "get_circulation_successful"
}
Create multiple circulation entries.
ID of the location to associate the circulation with.
ID of the layer to associate the circulation with.
Name of the circulation.
GeoJSON geometry for the circulation.
POST /spatial/v1/circulation HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 70
[
{
"location_id": "text",
"layer_id": "text",
"name": "text",
"geometry": {}
}
]
{
"success": true,
"data": {
"circulation": [
{
"circulation_id": "circulation_123"
},
{
"circulation_id": "circulation_124"
}
]
},
"identifier": "create_circulation_successful"
}
Update multiple circulation entries.
ID of the circulation to update.
Name of the circulation.
GeoJSON geometry for the circulation.
PUT /spatial/v1/circulation HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 55
[
{
"circulation_id": "text",
"name": "text",
"geometry": {}
}
]
{
"success": true,
"data": {
"circulation": [
{
"circulation_id": "circulation_123"
},
{
"circulation_id": "circulation_124"
}
]
},
"identifier": "update_circulation_successful"
}
Last updated
Was this helpful?