Generate Route API
Require Authentication
This API is used to generate route for the company based on combination of deviceID and token.
URL
api/routes/generaterouteslist/:maintenanceScheduleID/:mode
Required parameter (POST)
- deviceID
- token
- maintenanceScheduleProcessID «contains maintenanceScheduleProcessID that will be looked for. Value must exist in Value must exist in Get Available Routes/Schedules»
- mode«»contains route mode that wants to be calculated. Value contains one of the following: "driving", "walking", or "bicycling"
Optional parameter
Example JSON Payload
{
"deviceID": "ABCD-EFGH-IJKL-MNOP",
"token": "bb602ab13b8090268cd6e3bb9dfa39e2"
}
Possible return HTTP status code
- 200
- 400
- 401
- 404
- 405
Return message
{
"status": "success",
"message": [
"New route has been calculated."
]
}