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

FieldDescription
codeAPI Status Code
messageAPI Message
reasonThe reason for failure
generatedAtAPI generation timestamp in UTC
generatedAtInMillisAPI generation timestamp in milliseconds
fleetAn array of fleet objects
vehicleIdUnique identifier of the vehicle
vehicleName of the vehicle
deviceIdUnique identifier of the device
pairedBoolean to indicate if the vehicle is paired or not
latitudeLatitude coordinate of the location of the vehicle
longitudeLongitude coordinate of the location of the vehicle
pairedDriverFirstNameFirst name of the driver who is paired with the vehicle
pairedDriverLastNameLast name of the driver who is paired with the vehicle
pairingStartTimeTime when the driver and vehicle got paired
addressAddress of the location of vehicle
deviceSerialNumberSerial number of the Azuga device which is plugged into the vehicle
distanceDistance of the vehicle from the user in feet
vehicleTypeType of vehicle
licensePlateNumLicense 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
Authorization
Header
Click Try It! to start a request and see the response here!