getIsochrone

fun getIsochrone(origin: LatLng, value: Int, mode: TransitMode? = null, language: String? = null, units: UnitSystem? = null, method: Method? = null): DistanceIsochroneResponseIsoline

Isochrone (Early Access) Find all destinations that can be reached in a specific amount of time or a maximum travel distance

Return

DistanceIsochroneResponse

Parameters

origin

The starting point. It should be supplied in the form of latitude/longitude coordinates. Ensure that no space exists between the latitude and longitude values.

value The value to use for isochrone contour. You can specify time in minutes or distance in kilometers (cf. method parameter). The maximum value that can be specified is 120 (120 minutes : 2 hours or 120 km).

mode

Specifies the mode of transport to use when calculating distance (optional)

language

The language code, indicating in which language the results should be returned, if possible. If language is not supplied, the Distance API service will use the navigator language or “en”. (optional)

units

Specifies the unit system parameter 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 (optional)

method

Specifies the method to compute the route between the start point and the end point: - `time`: fastest route (default) - `distance`: shortest route (optional)

Throws

If the request is not correctly configured

Rethrows the OkHttp execute method exception

If the API returns an informational or redirection response

ClientException

If the API returns a client error response

ServerException

If the API returns a server error response