- Introdução a API
- Rotas
- Introdução a API Trackings
- Endpoints
- others
- reports
- bounds
- driver
- migration
- last-tracking
- planned-route
- new-planned-route
- vehicles
- trackings
- tracker
- Abastecimentos
- Multas
- Manutenção
- others
- Maintenance
- Planning Plan
- Maintenance Dashboard
- Mapa
- Ultimos Pontos (Last Points)
- lastbreakroutepoint
get planned route to update
GET
https://cgv-prd-trackings-api.contele.io/api/v1/get-planned-route-to-update
new-planned-route
Last modified:2024-11-19 20:38:26
Requisição
Parâmetros Query
planned_route_id
string
requerido
Parâmetros Header
x-api-key
string
requerido
Padrão:
{{api_key}}
Exemplos de Requisição
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://cgv-prd-trackings-api.contele.io/api/v1/get-planned-route-to-update?planned_route_id' \
--header 'x-api-key;'
Respostas
🟢200OK
application/json
Body
route_name
string
opcional
calculated_header
object
opcional
dead_distance_route_in_meters
number
opcional
dead_time_route_in_seconds
number
opcional
total_distance_route_in_meters
number
opcional
total_time_route_in_seconds
number
opcional
dead_start_distance_route_in_meters
number
opcional
dead_start_time_route_in_seconds
number
opcional
dead_end_time_route_in_seconds
number
opcional
dead_end_distance_route_in_meters
number
opcional
bound_configurations
object
opcional
selected_vehicle
number
opcional
selected_driver
number
opcional
route_configurations
object
opcional
includes_initial_and_final_stop
boolean
opcional
stop_points
array [object {8}]
opcional
dead_start_route_linestring
array [object {2}]
opcional
dead_end_route_linestring
array [object {2}]
opcional
productive_route_linestring
array [object {2}]
opcional
Exemplo
{
"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
}
]
}
}
🟠400Pedido inválido
🟠401Não autorizado
🟠403Proibido
🟠404Registro não encontrado
🔴500Erro do servidor
Modified at 2024-11-19 20:38:26