Get Active map and data
GET/maps/data
The Get Active map and data request allows unauthenticated/authenticated users to retrieve detailed information(waypoints, zones) about a specific map.
Request
Responses
- 200
- 401
- 403
- 500
Currently Active Map and data(Waypoints and Zones related to that map) object.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- GeoJSONPoint
- GeoJSONLineString
- GeoJSONPolygon
- ]
map object
Possible values: >= 3 characters and <= 50 characters
properties object
origin object
position objectrequired
orientation objectrequired
createdBy object
The user who created this map
updatedBy object
The user who last updated this map
The date and time this user was created
The date and time this user was last updated
waypoints object[]
Possible values: >= 3 characters and <= 50 characters
Possible values: [normal, special, charging, home]
coordinate object
position objectrequired
orientation objectrequired
map object
Possible values: >= 3 characters and <= 50 characters
createdBy object
The user who created this waypoint
updatedBy object
The user who last updated this waypoint
The date and time this waypoint was created
The date and time this waypoint was last updated
zones object[]
Possible values: >= 3 characters and <= 50 characters
Possible values: [restricted, warning, blink, buzzer, speed, no-plan]
Default value: true
Possible values: [Feature]
GeoJSON type of the zone, always Feature
geometry object
Possible values: [Point]
Possible values: [LineString]
Possible values: [Polygon]
map object
Possible values: >= 3 characters and <= 50 characters
createdBy object
The user who created this zone
updatedBy object
The user who last updated this zone
The date and time this zone was created
The date and time this zone was last updated
{
"map": {
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"isActive": true,
"properties": {
"origin": {
"position": {
"x": 0,
"y": 0,
"z": 0
},
"orientation": {
"x": 0,
"y": 0,
"z": 0,
"w": 0
}
},
"width": 0,
"height": 0,
"resolution": 0,
"previewUrl": "string"
},
"createdBy": {
"_id": "string",
"name": "string",
"email": "user@example.com"
},
"updatedBy": {
"_id": "string",
"name": "string",
"email": "user@example.com"
},
"createdAt": "2024-12-03T13:26:27.460Z",
"updatedAt": "2024-12-03T13:26:27.460Z"
},
"waypoints": [
{
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"category": "normal",
"dockMarker": 0,
"coordinate": {
"position": {
"x": 0,
"y": 0,
"z": 0
},
"orientation": {
"x": 0,
"y": 0,
"z": 0,
"w": 0
}
},
"map": {
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"properties": {},
"createdBy": {
"_id": "string",
"name": "string",
"email": "user@example.com"
},
"updatedBy": {
"_id": "string",
"name": "string",
"email": "user@example.com"
},
"createdAt": "2024-12-03T13:26:27.461Z",
"updatedAt": "2024-12-03T13:26:27.461Z"
}
],
"zones": [
{
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"category": "restricted",
"isActive": true,
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-73.989,
40.735
]
},
"map": {
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"properties": {},
"createdBy": {
"_id": "string",
"name": "string",
"email": "user@example.com"
},
"updatedBy": {
"_id": "string",
"name": "string",
"email": "user@example.com"
},
"createdAt": "2024-12-03T13:26:27.462Z",
"updatedAt": "2024-12-03T13:26:27.462Z"
}
]
}
Unauthorized.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"message": "Authentication token not provided."
}
{
"message": "Authentication token not provided."
}
Forbidden.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"message": "Access to this resource is forbidden."
}
{
"message": "Access to this resource is forbidden."
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"message": "Internal Server Error. Please try again later."
}
{
"message": "Internal Server Error. Please try again later."
}