DistanceService

class DistanceService : ApiClient

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun getDistanceMatrix(    origins: List<LatLng>,     destinations: List<LatLng>,     mode: TransitMode? = null,     language: String? = null,     units: UnitSystem? = null,     elements: Elements? = null,     method: Method? = null): DistanceMatrixResponse

Distance Matrix Get distances and durations for a matrix of origins and destinations, based on the recommended route between start and end points for a specified travel mode.

Link copied to clipboard
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

Link copied to clipboard
fun getRoute(    origin: LatLng,     destination: LatLng,     mode: TransitMode? = null,     language: String? = null,     units: UnitSystem? = null,     alternatives: Boolean? = null,     waypoints: String? = null,     method: Method? = null,     details: Details? = null,     avoid: String? = null): List<DistanceRouteElementsResponse>

Route Get distance, duration and path (as a polyline) for a pair of origin and destination, based on the recommended route between those two points for a specified travel mode.