RouteLeg
A leg is a section of a route from one waypoint to the next. A leg could be of type Vehicle, Pedestrian or Ferry. Legs of different types could occur together within a single route. For example, a car employing the use of a Ferry will contain Vehicle legs corresponding to journey on land, and Ferry legs corresponding to the journey via Ferry.
Types
Properties
FerryLegDetails is populated when the Leg type is Ferry, and provides additional information that is specific to ferry travel. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.
Geometry of the area to be avoided.
Details related to the pedestrian leg.
Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.
Type of the leg.
Details related to the vehicle leg.