Builder

class Builder

Properties

Link copied to clipboard

Specifies the desired time of arrival. Uses the given time to calculate the route. Otherwise, the best time of day to travel with the best traffic conditions is used to calculate the route.

Link copied to clipboard

The name of the route calculator resource that you want to use to calculate the route.

Link copied to clipboard

Specifies route preferences when traveling by Car, such as avoiding routes that use ferries or tolls.

Link copied to clipboard

Sets the time of departure as the current time. Uses the current time to calculate a route. Otherwise, the best time of day to travel with the best traffic conditions is used to calculate the route.

Link copied to clipboard

The start position for the route. Defined in World Geodetic System (WGS 84) format: [longitude, latitude].

Link copied to clipboard

Specifies the desired time of departure. Uses the given time to calculate the route. Otherwise, the best time of day to travel with the best traffic conditions is used to calculate the route.

Link copied to clipboard

The finish position for the route. Defined in World Geodetic System (WGS 84) format: [longitude, latitude].

Link copied to clipboard

Set the unit system to specify the distance.

Link copied to clipboard

Set to include the geometry details in the result for each path between a pair of positions.

Link copied to clipboard
var key: String?

The optional API key to authorize the request.

Link copied to clipboard

Specifies the distance to optimize for when calculating a route.

Link copied to clipboard

Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility. You can choose Car, Truck, Walking, Bicycle or Motorcycle as options for the TravelMode.

Link copied to clipboard

Specifies route preferences when traveling by Truck, such as avoiding routes that use ferries or tolls, and truck specifications to consider when choosing an optimal road.

Link copied to clipboard

Specifies an ordered list of up to 23 intermediate positions to include along a route between the departure position and destination position.