Route Management
Create a route
Changed onCreates a new route. The route is validated and written as a single whole artifact.
post/v1/vehicles/{vehicleId}/routes/{name}
Request
- Base URLhttps://api.polymathrobotics.dev
- URLhttps://api.polymathrobotics.dev/v1/vehicles/{vehicleId}/routes/{name}
- AuthHTTP bearer
Path parameters
vehicleIdstring required
Vehicle ID issued by Polymath
namestring required
Request body
Example request
{
"nodes": [
{
"id": 0,
"coordinate_system": 0,
"wgs84_position": {
"lat": 37.7749,
"lon": -122.4194
}
},
{
"id": 1,
"coordinate_system": 0,
"wgs84_position": {
"lat": 37.7752,
"lon": -122.4189
}
}
],
"edges": [
{
"from_node_id": 0,
"to_node_id": 1,
"id": 0,
"cost": 1
}
]
}Response
Confirmation that the route was created or updated.
Example response
{
"status": "success",
"message": "string"
}Changes
- info
endpoint added
- info