go back to MileageService

GET /mileage/distanceToNext

This method returns the distance from the current position, in latitude/longitude, to the given stop.

Roles that can access this endpoint are Users, Drivers, Carriers, Carrier Drivers.

Parameters

name description type default type
latitude the latitude of the current position query Double
longitude the longitude of the current position query Double
stopId the ID of the stop for which to get distance to query String

Result

String of type: application/xml application/json

a string value representing the distance from the current position to the given stop

Try It Out

Request

- Authentication Help
- Double
- Double
- String