Package-level declarations
Contains models data classes for Distance API.
Types
Attributes describing a distance isochrone response.
Contains the properties of isoline
The distance of the isochrone (returned only if method=distance
in parameters)
The time of the isochrone (returned as default or when specifying method=time
in parameters)
Leg in a route
Attributes describing an element of origin and destination returned in distance Matrix response.
Attributes describing elements of origin and destination returned in distance Matrix response.
Attributes describing an distance Matrix response.
Attributes describing routes from an origin to a destination returned in distance route response.
Attributes describing a distance route response.
Returns more info on if the request was successful or not. * OK
indicates the response contains a valid result. * INVALID_REQUEST
indicates that the provided request was invalid (e.g. wrong URL syntax). * MAX_ELEMENTS_EXCEEDED
indicates that the product of origins and destinations exceeds the per-query limit (fixed at 200 elts/q). * MAX_ROUTE_LENGTH_EXCEEDED
indicates that at least one of requested route is too long and the matrix cannot be processed (>500km). * REQUEST_DENIED
indicates that the service denied use of the Distance API service (e.g. wrong API Key, wrong/no referer, …). * BACKEND_ERROR
indicates a Distance API request could not be processed due to a server error. This may indicate that the origin and/or destination of this pairing could not be matched to the network. The request may or may not succeed if you try again. * OVER_QUERY_LIMIT
(associated to a 429 status code) indicates that the number of queries per second (QPS) or the number of elements per second (EPS) exceed the usage limits
step in a leg
The total distance expressed in meters (value) and as text. The textual value uses the unit system specified with the units parameter of the original request.
The total duration to travel this route/leg, expressed in seconds (value) and as text. The textual value gives a structured string for duration in the specified language (if available).
The polyline of the route (encoded with the poyline algorithm).
enum for Transit Mode
Specifies the unit system to use when expressing distance as text. Two different units supported: * metric
(default) returns distances in kilometers and meters * imperial
returns distances in miles and feet