{ "opencollection": "1.0.0", "info": { "name": "LocoNav Integration Alert Subscriptions Trips API", "version": "v1" }, "request": { "auth": { "type": "apikey", "key": "User-Authentication", "value": "{{User-Authentication}}", "placement": "header" } }, "items": [ { "info": { "name": "Trips", "type": "folder" }, "items": [ { "info": { "name": "List Trips", "type": "http" }, "http": { "method": "GET", "url": "https://api.a.loconav.com/integration/api/v1/integration/api/v1/trips" }, "docs": "
This API allows users to retrieve a list of trips based on various filters such as unique ID, start time, end time, states, driver ID, sort column, sort order, page number, and number of trips per page.
\nuniqueId (string, optional): Unique ID of the trip.startTime (integer, optional): Start time of the trip.endTime (integer, o"
},
{
"info": {
"name": "Create Trip",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://api.a.loconav.com/integration/api/v1/integration/api/v1/trips",
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "Create Trip.
\nCreate trip using route name: Pass route name in the create trip API.
\nCreate trip using Route id: Pass route id in the create trip API.
\nCreate trip using geofence: Pass geofence id in the create trip API
\nCreate Trip using the address and coordinates : Pass address and coordinates in source in the create trip API
\nCreate Trip where the destination is " }, { "info": { "name": "Update Trip", "type": "http" }, "http": { "method": "PUT", "url": "https://api.a.loconav.com/integration/api/v1/integration/api/v1/trips/:tripId", "params": [ { "name": "tripId", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "
This API endpoint allows users to update trip details such as the source location and actions.
\nAction can have these 4 values
\nUPDATE_TRIP - Can update any variablesEND_TRIP - To end the trip: Only need \"id\" for this.PARTIAL_UPDATE_TRIP - Can be used to update \""
},
{
"info": {
"name": "Delete Trip",
"type": "http"
},
"http": {
"method": "DELETE",
"url": "https://api.a.loconav.com/integration/api/v1/integration/api/v1/trips/:tripId",
"params": [
{
"name": "tripId",
"value": "",
"type": "path"
}
]
},
"docs": "This API endpoint allows administrators to delete a trip based on its ID.
\ntripId (integer): Unique identifier for the trip to be deleted.success (boolean): Indicates whether the request was successful.
message(string): A message confirming the success of the deletion "
},
{
"info": {
"name": "Get Trip Track Url",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.a.loconav.com/integration/api/v1/integration/api/v1/trips/:tripId/track_url",
"params": [
{
"name": "tripId",
"value": "",
"type": "path"
}
]
},
"docs": "
This API endpoint retrieves a public tracking URL for a specific trip, including given checkpoints, allowing users to monitor the trip's progress in real-time.
\nClients can send this URL directly to end customers for real time public tracking of the vehicle.
\n{trip_id} (integer): ID of the trip for which the tracking URL is requested.<"
}
]
}
],
"bundled": true
}