Builder

class Builder

Properties

Link copied to clipboard

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

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 the route matrix. You can't set both DepartureTime and DepartNow. If neither is set, the best time of day to travel with the best traffic conditions is used to calculate the route matrix.

Link copied to clipboard

The list of departure (origin) positions for the route matrix. An array of points, each of which is itself a 2-value array defined in WGS 84 format: [longitude, latitude]. For example, [-123.115, 49.285].

Link copied to clipboard

Specifies the desired time of departure. Uses the given time to calculate the route matrix. You can't set both DepartureTime and DepartNow. If neither is set, the best time of day to travel with the best traffic conditions is used to calculate the route matrix.

Link copied to clipboard

The list of destination positions for the route matrix. An array of points, each of which is itself a 2-value array defined in WGS 84 format: [longitude, latitude]. For example, [-122.339, 47.615]

Link copied to clipboard

Set the unit system to specify the distance.

Link copied to clipboard
var key: String?

The optional API key to authorize the request.

Link copied to clipboard

Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.

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.