These docs are for v1. Click to read the latest docs for v3.

Nearest Vehicles

Use this API to get vehicles closest to your current location. Vehicles will be searched within a defined radius. The response also includes the pairing details of the vehicle, driver name, and distance of the vehicle from your location.

📘

Sample Request

https://api.azuga.com/azuga-ws/v1/fleet/nearestvehicles.json?latitude=37.360165&longitude=-122.059718

API Response explanation

Field

Description

code

API Status Code

message

API Message

reason

The reason for failure

generatedAt

API generation timestamp in UTC

generatedAtInMillis

API generation timestamp in milliseconds

fleet

An array of fleet objects

vehicleId

Unique identifier of the vehicle

vehicle

Name of the vehicle

deviceId

Unique identifier of the device

paired

Boolean to indicate if the vehicle is paired or not

latitude

Latitude coordinate of the location of the vehicle

longitude

Longitude coordinate of the location of the vehicle

pairedDriverFirstName

First name of the driver who is paired with the vehicle

pairedDriverLastName

Last name of the driver who is paired with the vehicle

pairingStartTime

Time when the driver and vehicle got paired

address

Address of the location of vehicle

deviceSerialNumber

Serial number of the Azuga device which is plugged into the vehicle

distance

Distance of the vehicle from the user in feet

vehicleType

Type of vehicle

licensePlateNum

License plate number of the vehicle

🚧

Disclaimer

This API provides information only for a driver and does not provide aggregated information for a group of vehicles. Admins should not use these APIs, but should look at other sections of the documentation.

Language
Credentials
Header
Click Try It! to start a request and see the response here!