create planned route
Amb. de testes
POST
/create-planned-routeRequisição
Body Params application/json
route_name
string
required
calculated_header
object
required
dead_distance_route_in_meters
number
required
dead_time_route_in_seconds
number
required
total_distance_route_in_meters
number
required
total_time_route_in_seconds
number
required
dead_start_distance_route_in_meters
number
required
dead_start_time_route_in_seconds
number
required
dead_end_time_route_in_seconds
number
required
dead_end_distance_route_in_meters
number
required
bound_configurations
object
required
selected_vehicle
number
required
selected_driver
number
required
route_configurations
object
required
includes_initial_and_final_stop
boolean
required
stop_points
array [object {8}]
required
dead_start_route_linestring
array [object {2}]
required
dead_end_route_linestring
array [object {2}]
required
productive_route_linestring
array [object {2}]
required
Example
{
"route_name": "string",
"calculated_header": {
"dead_distance_route_in_meters": 0,
"dead_time_route_in_seconds": 0,
"total_distance_route_in_meters": 0,
"total_time_route_in_seconds": 0,
"dead_start_distance_route_in_meters": 0,
"dead_start_time_route_in_seconds": 0,
"dead_end_time_route_in_seconds": 0,
"dead_end_distance_route_in_meters": 0
},
"bound_configurations": {
"selected_vehicle": 0,
"selected_driver": 0
},
"route_configurations": {
"includes_initial_and_final_stop": true,
"stop_points": [
{
"stop_point_name": "string",
"stop_point_type": "string",
"stop_point_order": 0,
"place_holder": "string",
"stop_point_full_address_name": "string",
"stop_point_hour": "string",
"stop_point_latitude": 0,
"stop_point_longitude": 0
}
],
"dead_start_route_linestring": [
{
"lat": 0,
"lng": 0
}
],
"dead_end_route_linestring": [
{
"lat": 0,
"lng": 0
}
],
"productive_route_linestring": [
{
"lat": 0,
"lng": 0
}
]
}
}
Exemplos de Requisição
Responses
OK(200)
Pedido inválido(400)
Não autorizado(401)
Proibido(403)
Registro não encontrado(404)
Erro do servidor(500)
Código HTTP: 200
Tipo de Conteúdo: JSONapplication/json
ok
Data Schema
object {0}
Example
Not configured
Last modified: a month ago