Note:

You are viewing the documentation for an older major version of the AWS CLI (version 1). To view this page for the AWS CLI version 2, click here.

We announced the upcoming end-of-support for the AWS CLI v1. For dates, additional details, and information on how to migrate, please refer to the linked announcement. For more information see the AWS CLI version 2 installation instructions and migration guide.

[ aws . geo-routes ]

calculate-routes

Description

CalculateRoutes computes routes given the following required parameters: Origin and Destination .

For more information, see Calculate routes in the Amazon Location Service Developer Guide .

See also: AWS API Documentation

Synopsis

  calculate-routes
[--allow <value>]
[--arrival-time <value>]
[--avoid <value>]
[--depart-now | --no-depart-now]
[--departure-time <value>]
--destination <value>
[--destination-options <value>]
[--driver <value>]
[--exclude <value>]
[--instructions-measurement-system <value>]
[--key <value>]
[--languages <value>]
[--leg-additional-features <value>]
[--leg-geometry-format <value>]
[--max-alternatives <value>]
[--optimize-routing-for <value>]
--origin <value>
[--origin-options <value>]
[--span-additional-features <value>]
[--tolls <value>]
[--traffic <value>]
[--travel-mode <value>]
[--travel-mode-options <value>]
[--travel-step-type <value>]
[--waypoints <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--v2-debug]

Options

--allow (structure)

Features that are allowed while calculating a route. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

Hot -> (boolean)

Allow Hot (High Occupancy Toll) lanes while calculating the route.

Default value: false

Hov -> (boolean)

Allow Hov (High Occupancy vehicle) lanes while calculating the route.

Default value: false

Shorthand Syntax:

Hot=boolean,Hov=boolean

JSON Syntax:

{
  "Hot": true|false,
  "Hov": true|false
}

--arrival-time (string)

Time of arrival at the destination. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

Time format:YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mm

Examples:

2020-04-22T17:57:24Z

2020-04-22T17:57:24+02:00

--avoid (structure)

Features that are avoided while calculating a route. Avoidance is on a best-case basis. If an avoidance can’t be satisfied for a particular case, it violates the avoidance and the returned response produces a notice for the violation. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions support only ControlledAccessHighways , Ferries , and TollRoads

Areas -> (list)

Areas to be avoided. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

(structure)

Areas to be avoided.

Except -> (list)

Exceptions to the provided avoidance geometry, to be included while calculating the route.

(structure)

Geometry of the area to be avoided.

Corridor -> (structure)

Geometry defined as a corridor - a LineString with a radius that defines the width of the corridor.

LineString -> (list)

An ordered list of positions used to plot a route on a map.

Note

LineString and Polyline are mutually exclusive properties.

(list)

(double)

Radius -> (integer)

Radius that defines the width of the corridor.

BoundingBox -> (list)

Geometry defined as a bounding box. The first pair represents the X and Y coordinates (longitude and latitude,) of the southwest corner of the bounding box; the second pair represents the X and Y coordinates (longitude and latitude) of the northeast corner.

(double)

Polygon -> (list)

Geometry defined as a polygon with only one linear ring.

(list)

(list)

(double)

PolylineCorridor -> (structure)

Geometry defined as an encoded corridor - an encoded polyline with a radius that defines the width of the corridor.

Polyline -> (string)

An ordered list of positions used to plot a route on a map in a lossy compression format.

Note

LineString and Polyline are mutually exclusive properties.

Radius -> (integer)

Considers all roads within the provided radius to match the provided destination to. The roads that are considered are determined by the provided Strategy.

Unit : meters

PolylinePolygon -> (list)

A list of Isoline PolylinePolygon, for each isoline PolylinePolygon, it contains PolylinePolygon of the first linear ring (the outer ring) and from 2nd item to the last item (the inner rings). For more information on polyline encoding, see https://github.com/aws-geospatial/polyline .

(string)

Geometry -> (structure)

Geometry of the area to be avoided.

Corridor -> (structure)

Geometry defined as a corridor - a LineString with a radius that defines the width of the corridor.

LineString -> (list)

An ordered list of positions used to plot a route on a map.

Note

LineString and Polyline are mutually exclusive properties.

(list)

(double)

Radius -> (integer)

Radius that defines the width of the corridor.

BoundingBox -> (list)

Geometry defined as a bounding box. The first pair represents the X and Y coordinates (longitude and latitude,) of the southwest corner of the bounding box; the second pair represents the X and Y coordinates (longitude and latitude) of the northeast corner.

(double)

Polygon -> (list)

Geometry defined as a polygon with only one linear ring.

(list)

(list)

(double)

PolylineCorridor -> (structure)

Geometry defined as an encoded corridor - an encoded polyline with a radius that defines the width of the corridor.

Polyline -> (string)

An ordered list of positions used to plot a route on a map in a lossy compression format.

Note

LineString and Polyline are mutually exclusive properties.

Radius -> (integer)

Considers all roads within the provided radius to match the provided destination to. The roads that are considered are determined by the provided Strategy.

Unit : meters

PolylinePolygon -> (list)

A list of Isoline PolylinePolygon, for each isoline PolylinePolygon, it contains PolylinePolygon of the first linear ring (the outer ring) and from 2nd item to the last item (the inner rings). For more information on polyline encoding, see https://github.com/aws-geospatial/polyline .

(string)

CarShuttleTrains -> (boolean)

Avoid car-shuttle-trains while calculating the route. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

ControlledAccessHighways -> (boolean)

Avoid controlled access highways while calculating the route.

DirtRoads -> (boolean)

Avoid dirt roads while calculating the route. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

Ferries -> (boolean)

Avoid ferries while calculating the route.

SeasonalClosure -> (boolean)

Avoid roads that have seasonal closure while calculating the route. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

TollRoads -> (boolean)

Avoids roads where the specified toll transponders are the only mode of payment.

TollTransponders -> (boolean)

Avoids roads where the specified toll transponders are the only mode of payment. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

TruckRoadTypes -> (list)

Truck road type identifiers. BK1 through BK4 apply only to Sweden. A2,A4,B2,B4,C,D,ET2,ET4 apply only to Mexico. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

Note

There are currently no other supported values as of 26th April 2024.

(string)

Tunnels -> (boolean)

Avoid tunnels while calculating the route. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

UTurns -> (boolean)

Avoid U-turns for calculation on highways and motorways. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

ZoneCategories -> (list)

Zone categories to be avoided. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

(structure)

Zone categories to be avoided. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

Category -> (string)

Zone category to be avoided.

JSON Syntax:

{
  "Areas": [
    {
      "Except": [
        {
          "Corridor": {
            "LineString": [
              [double, ...]
              ...
            ],
            "Radius": integer
          },
          "BoundingBox": [double, ...],
          "Polygon": [
            [
              [double, ...]
              ...
            ]
            ...
          ],
          "PolylineCorridor": {
            "Polyline": "string",
            "Radius": integer
          },
          "PolylinePolygon": ["string", ...]
        }
        ...
      ],
      "Geometry": {
        "Corridor": {
          "LineString": [
            [double, ...]
            ...
          ],
          "Radius": integer
        },
        "BoundingBox": [double, ...],
        "Polygon": [
          [
            [double, ...]
            ...
          ]
          ...
        ],
        "PolylineCorridor": {
          "Polyline": "string",
          "Radius": integer
        },
        "PolylinePolygon": ["string", ...]
      }
    }
    ...
  ],
  "CarShuttleTrains": true|false,
  "ControlledAccessHighways": true|false,
  "DirtRoads": true|false,
  "Ferries": true|false,
  "SeasonalClosure": true|false,
  "TollRoads": true|false,
  "TollTransponders": true|false,
  "TruckRoadTypes": ["string", ...],
  "Tunnels": true|false,
  "UTurns": true|false,
  "ZoneCategories": [
    {
      "Category": "CongestionPricing"|"Environmental"|"Vignette"
    }
    ...
  ]
}

--depart-now | --no-depart-now (boolean)

Uses the current time as the time of departure.

--departure-time (string)

Time of departure from the origin.

Time format:YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mm

Examples:

2020-04-22T17:57:24Z

2020-04-22T17:57:24+02:00

--destination (list)

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

(double)

Syntax:

double double ...

--destination-options (structure)

Destination related options. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

AvoidActionsForDistance -> (long)

The distance in meters from the destination point within which certain routing actions (such as U-turns or left turns across traffic) are restricted. This helps generate more practical routes by avoiding potentially dangerous maneuvers near the endpoint.

AvoidUTurns -> (boolean)

Avoid U-turns for calculation on highways and motorways.

Heading -> (double)

GPS Heading at the position.

Matching -> (structure)

Options to configure matching the provided position to the road network.

NameHint -> (string)

Attempts to match the provided position to a road similar to the provided name.

OnRoadThreshold -> (long)

If the distance to a highway/bridge/tunnel/sliproad is within threshold, the waypoint will be snapped to the highway/bridge/tunnel/sliproad.

Unit : meters

Radius -> (long)

Considers all roads within the provided radius to match the provided destination to. The roads that are considered are determined by the provided Strategy.

Unit : meters

Strategy -> (string)

Strategy that defines matching of the position onto the road network. MatchAny considers all roads possible, whereas MatchMostSignificantRoad matches to the most significant road.

SideOfStreet -> (structure)

Options to configure matching the provided position to a side of the street.

Position -> (list)

Position in World Geodetic System (WGS 84) format: [longitude, latitude].

(double)

UseWith -> (string)

Strategy that defines when the side of street position should be used.

Default value: DividedStreetOnly

StopDuration -> (long)

Duration of the stop.

Unit : seconds

Shorthand Syntax:

AvoidActionsForDistance=long,AvoidUTurns=boolean,Heading=double,Matching={NameHint=string,OnRoadThreshold=long,Radius=long,Strategy=string},SideOfStreet={Position=[double,double],UseWith=string},StopDuration=long

JSON Syntax:

{
  "AvoidActionsForDistance": long,
  "AvoidUTurns": true|false,
  "Heading": double,
  "Matching": {
    "NameHint": "string",
    "OnRoadThreshold": long,
    "Radius": long,
    "Strategy": "MatchAny"|"MatchMostSignificantRoad"
  },
  "SideOfStreet": {
    "Position": [double, ...],
    "UseWith": "AnyStreet"|"DividedStreetOnly"
  },
  "StopDuration": long
}

--driver (structure)

Driver related options. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

Schedule -> (list)

Driver work-rest schedule. Stops are added to fulfil the provided rest schedule.

(structure)

Interval of the driver work-rest schedule. Stops are added to fulfil the provided rest schedule.

DriveDuration -> (long)

Maximum allowed driving time before stopping to rest.

Unit : seconds

RestDuration -> (long)

Resting time before the driver can continue driving.

Unit : seconds

Shorthand Syntax:

Schedule=[{DriveDuration=long,RestDuration=long},{DriveDuration=long,RestDuration=long}]

JSON Syntax:

{
  "Schedule": [
    {
      "DriveDuration": long,
      "RestDuration": long
    }
    ...
  ]
}

--exclude (structure)

Features to be strictly excluded while calculating the route. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

Countries -> (list)

List of countries to be avoided defined by two-letter or three-letter country codes.

(string)

Shorthand Syntax:

Countries=string,string

JSON Syntax:

{
  "Countries": ["string", ...]
}

--instructions-measurement-system (string)

Measurement system to be used for instructions within steps in the response.

Possible values:

  • Metric
  • Imperial

--key (string)

Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.

--languages (list)

List of languages for instructions within steps in the response. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

Note

Instructions in the requested language are returned only if they are available.

(string)

Syntax:

"string" "string" ...

--leg-additional-features (list)

A list of optional additional parameters such as timezone that can be requested for each result. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions support only PassThroughWaypoints , Summary , and TravelStepInstructions

  • Elevation : Retrieves the elevation information for each location.
  • Incidents : Provides information on traffic incidents along the route.
  • PassThroughWaypoints : Indicates waypoints that are passed through without stopping.
  • Summary : Returns a summary of the route, including distance and duration.
  • Tolls : Supplies toll cost information along the route.
  • TravelStepInstructions : Provides step-by-step instructions for travel along the route.
  • TruckRoadTypes : Returns information about road types suitable for trucks.
  • TypicalDuration : Gives typical travel duration based on historical data.
  • Zones : Specifies the time zone information for each waypoint.

(string)

Syntax:

"string" "string" ...

Where valid values are:
  Elevation
  Incidents
  PassThroughWaypoints
  Summary
  Tolls
  TravelStepInstructions
  TruckRoadTypes
  TypicalDuration
  Zones
  Bookings
  IntermediateStops
  NextDepartures

--leg-geometry-format (string)

Specifies the format of the geometry returned for each leg of the route. You can choose between two different geometry encoding formats.

FlexiblePolyline : A compact and precise encoding format for the leg geometry. For more information on the format, see the GitHub repository for https://github.com/aws-geospatial/polyline .

Simple : A less compact encoding, which is easier to decode but may be less precise and result in larger payloads.

Possible values:

  • FlexiblePolyline
  • Simple

--max-alternatives (integer)

Maximum number of alternative routes to be provided in the response, if available. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions support only up to 3 alternative routes.

--optimize-routing-for (string)

Controls the trade-off between achieving the shortest travel time (FastestRoute ) and achieving the shortest physical distance ((ShortestRoute ) when calculating each route in the matrix.

Default value: FastestRoute

Possible values:

  • FastestRoute
  • ShortestRoute

--origin (list)

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

(double)

Syntax:

double double ...

--origin-options (structure)

Specifies how the origin point should be matched to the road network and any routing constraints that apply when the traveler is departing the origin. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

AvoidActionsForDistance -> (long)

Avoids actions for the provided distance. This is typically to consider for users in moving vehicles who may not have sufficient time to make an action at an origin or a destination.

AvoidUTurns -> (boolean)

Avoid U-turns for calculation on highways and motorways.

Heading -> (double)

GPS Heading at the position.

Matching -> (structure)

Options to configure matching the provided position to the road network.

NameHint -> (string)

Attempts to match the provided position to a road similar to the provided name.

OnRoadThreshold -> (long)

If the distance to a highway/bridge/tunnel/sliproad is within threshold, the waypoint will be snapped to the highway/bridge/tunnel/sliproad.

Unit : meters

Radius -> (long)

Considers all roads within the provided radius to match the provided destination to. The roads that are considered are determined by the provided Strategy.

Unit : meters

Strategy -> (string)

Strategy that defines matching of the position onto the road network. MatchAny considers all roads possible, whereas MatchMostSignificantRoad matches to the most significant road.

SideOfStreet -> (structure)

Options to configure matching the provided position to a side of the street.

Position -> (list)

Position in World Geodetic System (WGS 84) format: [longitude, latitude].

(double)

UseWith -> (string)

Strategy that defines when the side of street position should be used.

Default value: DividedStreetOnly

Shorthand Syntax:

AvoidActionsForDistance=long,AvoidUTurns=boolean,Heading=double,Matching={NameHint=string,OnRoadThreshold=long,Radius=long,Strategy=string},SideOfStreet={Position=[double,double],UseWith=string}

JSON Syntax:

{
  "AvoidActionsForDistance": long,
  "AvoidUTurns": true|false,
  "Heading": double,
  "Matching": {
    "NameHint": "string",
    "OnRoadThreshold": long,
    "Radius": long,
    "Strategy": "MatchAny"|"MatchMostSignificantRoad"
  },
  "SideOfStreet": {
    "Position": [double, ...],
    "UseWith": "AnyStreet"|"DividedStreetOnly"
  }
}

--span-additional-features (list)

A list of optional features such as SpeedLimit that can be requested for a Span. A span is a section of a Leg for which the requested features have the same values. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

(string)

Syntax:

"string" "string" ...

Where valid values are:
  BestCaseDuration
  CarAccess
  Country
  Distance
  Duration
  DynamicSpeed
  FunctionalClassification
  Gates
  Incidents
  Names
  Notices
  PedestrianAccess
  RailwayCrossings
  Region
  RoadAttributes
  RouteNumbers
  ScooterAccess
  SpeedLimit
  TollSystems
  TruckAccess
  TruckRoadTypes
  TypicalDuration
  Zones
  Consumption

--tolls (structure)

Toll related options. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

AllTransponders -> (boolean)

Specifies if the user has valid transponder with access to all toll systems. This impacts toll calculation, and if true the price with transponders is used.

AllVignettes -> (boolean)

Specifies if the user has valid vignettes with access for all toll roads. If a user has a vignette for a toll road, then toll cost for that road is omitted since no further payment is necessary.

Currency -> (string)

Currency code corresponding to the price. This is the same as Currency specified in the request.

EmissionType -> (structure)

Emission type of the vehicle for toll cost calculation.

Valid values : Euro1, Euro2, Euro3, Euro4, Euro5, Euro6, EuroEev

Co2EmissionClass -> (string)

The CO 2 emission classes.

Type -> (string)

Type of the emission.

Valid values : Euro1, Euro2, Euro3, Euro4, Euro5, Euro6, EuroEev

VehicleCategory -> (string)

Vehicle category for toll cost calculation.

Shorthand Syntax:

AllTransponders=boolean,AllVignettes=boolean,Currency=string,EmissionType={Co2EmissionClass=string,Type=string},VehicleCategory=string

JSON Syntax:

{
  "AllTransponders": true|false,
  "AllVignettes": true|false,
  "Currency": "string",
  "EmissionType": {
    "Co2EmissionClass": "string",
    "Type": "string"
  },
  "VehicleCategory": "Minibus"
}

--traffic (structure)

Traffic related options. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

FlowEventThresholdOverride -> (long)

Duration for which flow traffic is considered valid. For this period, the flow traffic is used over historical traffic data. Flow traffic refers to congestion, which changes very quickly. Duration in seconds for which flow traffic event would be considered valid. While flow traffic event is valid it will be used over the historical traffic data.

Usage -> (string)

Specifies how traffic data should be used when calculating routes.

Default Value: UseTrafficData

Note

Traffic data usage depends on the time parameters in your route request:

  • When Usage is set to UseTrafficData :
    • If DepartNow is set to true , or if you specify DepartureTime or ArrivalTime , then all traffic data is considered (including live traffic and closures).
    • If DepartNow , DepartureTime , and ArrivalTime are all unspecified, then only long-term closures are considered, regardless of this setting.
  • When Usage is set to IgnoreTrafficData , then all traffic data is ignored regardless of the time parameters in your route request.

Shorthand Syntax:

FlowEventThresholdOverride=long,Usage=string

JSON Syntax:

{
  "FlowEventThresholdOverride": long,
  "Usage": "IgnoreTrafficData"|"UseTrafficData"
}

--travel-mode (string)

Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions support only Car , Pedestrian , and Scooter values.

Default value: Car

Possible values:

  • Car
  • Pedestrian
  • Scooter
  • Truck
  • Intermodal
  • Transit

--travel-mode-options (structure)

Travel mode related options for the provided travel mode. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions support only Car and Pedestrian travel mode options.

Car -> (structure)

Travel mode options when the provided travel mode is Car .

EngineType -> (string)

Engine type of the vehicle. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

LicensePlate -> (structure)

The vehicle License Plate.

LastCharacter -> (string)

The last character of the License Plate.

MaxSpeed -> (double)

Maximum speed specified. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

Unit : kilometers per hour

Occupancy -> (integer)

The number of occupants in the vehicle. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

Default value: 1

Pedestrian -> (structure)

Travel mode options when the provided travel mode is Pedestrian .

Speed -> (double)

Walking speed in Kilometers per hour.

Scooter -> (structure)

Travel mode options when the provided travel mode is Scooter .

Note

When travel mode is set to Scooter , then the avoidance option ControlledAccessHighways defaults to true .

EngineType -> (string)

Engine type of the vehicle. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

LicensePlate -> (structure)

The vehicle License Plate.

LastCharacter -> (string)

The last character of the License Plate.

MaxSpeed -> (double)

Maximum speed Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

Unit : kilometers per hour

Occupancy -> (integer)

The number of occupants in the vehicle. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

Default value: 1

Truck -> (structure)

Travel mode options when the provided travel mode is Truck .

AxleCount -> (integer)

Total number of axles of the vehicle.

EngineType -> (string)

Engine type of the vehicle.

GrossWeight -> (long)

Gross weight of the vehicle including trailers, and goods at capacity.

Unit : kilograms

HazardousCargos -> (list)

List of Hazardous cargo contained in the vehicle.

(string)

Height -> (long)

Height of the vehicle.

Unit : centimeters

HeightAboveFirstAxle -> (long)

Height of the vehicle above its first axle.

Unit : centimeters

KpraLength -> (long)

Kingpin to rear axle length of the vehicle.

Unit : centimeters

Length -> (long)

Length of the vehicle.

Unit : c

LicensePlate -> (structure)

The vehicle License Plate.

LastCharacter -> (string)

The last character of the License Plate.

MaxSpeed -> (double)

Maximum speed

Unit : kilometers per hour

Occupancy -> (integer)

The number of occupants in the vehicle.

Default value: 1

PayloadCapacity -> (long)

Payload capacity of the vehicle and trailers attached.

Unit : kilograms

TireCount -> (integer)

Number of tires on the vehicle.

Trailer -> (structure)

Trailer options corresponding to the vehicle.

AxleCount -> (integer)

Total number of axles of the vehicle.

TrailerCount -> (integer)

Number of trailers attached to the vehicle.

Default value: 0

TruckType -> (string)

The type of truck: LightTruck for smaller delivery vehicles, StraightTruck for rigid body trucks, or Tractor for tractor-trailer combinations.

TunnelRestrictionCode -> (string)

The tunnel restriction code.

Tunnel categories in this list indicate the restrictions which apply to certain tunnels in Great Britain. They relate to the types of dangerous goods that can be transported through them.

  • Tunnel Category B
    • Risk Level : Limited risk
    • Restrictions : Few restrictions
  • Tunnel Category C
    • Risk Level : Medium risk
    • Restrictions : Some restrictions
  • Tunnel Category D
    • Risk Level : High risk
    • Restrictions : Many restrictions occur
  • Tunnel Category E
    • Risk Level : Very high risk
    • Restrictions : Restricted tunnel

WeightPerAxle -> (long)

Heaviest weight per axle irrespective of the axle type or the axle group. Meant for usage in countries where the differences in axle types or axle groups are not distinguished.

Unit : kilograms

WeightPerAxleGroup -> (structure)

Specifies the total weight for the specified axle group. Meant for usage in countries that have different regulations based on the axle group type.

Unit : kilograms

Single -> (long)

Total weight in kilograms for single axle configurations.

Unit : kilograms

Tandem -> (long)

Total weight in kilograms for tandem (two adjacent) axle configurations.

Unit : kilograms

Triple -> (long)

Total weight in kilograms for triple (three adjacent) axle configurations.

Unit : kilograms

Quad -> (long)

Total weight in kilograms for quad (four adjacent) axle configurations.

Unit : kilograms

Quint -> (long)

Total weight in kilograms for quint (five adjacent) axle configurations.

Unit : kilograms

Width -> (long)

Width of the vehicle.

Unit : centimeters

Intermodal -> (structure)

Travel mode options when the provided travel mode is Intermodal .

Note

Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

AccessibilityAttributes -> (list)

Accessibility attributes to consider when calculating the route.

(string)

MaxTransfers -> (integer)

Maximum number of transfers allowed when calculating the route.

Pedestrian -> (structure)

Options for the pedestrian leg of the intermodal route.

MaxDistance -> (long)

Maximum walking distance allowed.

Unit : meters

Speed -> (double)

Walking speed.

Unit : kilometers per hour

Rental -> (structure)

Options for the rental leg of the intermodal route.

AllowedModes -> (list)

Allowed rental transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes .

(string)

EnabledFor -> (list)

Specifies the portion of the route for which this leg type is enabled. By default, the leg type is enabled for all legs. Valid values:

  • FirstLeg - Enable this leg type for the first non-pedestrian leg of the route.
  • LastLeg - Enable this leg type for the last non-pedestrian leg of the route.
  • EntireRoute - Enable this leg type for the entire route.
  • None - Disable this leg type entirely.

(string)

ExcludedModes -> (list)

Excluded rental transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes .

(string)

Taxi -> (structure)

Options for the taxi leg of the intermodal route.

AllowedModes -> (list)

Allowed taxi transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes .

(string)

EnabledFor -> (list)

Specifies the portion of the route for which this leg type is enabled. By default, the leg type is enabled for all legs. Valid values:

  • FirstLeg - Enable this leg type for the first non-pedestrian leg of the route.
  • LastLeg - Enable this leg type for the last non-pedestrian leg of the route.
  • EntireRoute - Enable this leg type for the entire route.
  • None - Disable this leg type entirely.

(string)

ExcludedModes -> (list)

Excluded taxi transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes .

(string)

Transit -> (structure)

Options for the transit leg of the intermodal route.

AllowedModes -> (list)

Allowed transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes .

(string)

EnabledFor -> (list)

Specifies the portion of the route for which this leg type is enabled. By default, the leg type is enabled for all legs. Valid values:

  • FirstLeg - Enable this leg type for the first non-pedestrian leg of the route.
  • LastLeg - Enable this leg type for the last non-pedestrian leg of the route.
  • EntireRoute - Enable this leg type for the entire route.
  • None - Disable this leg type entirely.

(string)

ExcludedModes -> (list)

Excluded transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes .

(string)

Vehicle -> (structure)

Options for the vehicle leg of the intermodal route.

AllowedModes -> (list)

Allowed vehicle transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes .

(string)

EnabledFor -> (list)

Specifies the portion of the route for which this leg type is enabled. By default, the leg type is enabled for all legs. Valid values:

  • FirstLeg - Enable this leg type for the first non-pedestrian leg of the route.
  • LastLeg - Enable this leg type for the last non-pedestrian leg of the route.
  • EntireRoute - Enable this leg type for the entire route.
  • None - Disable this leg type entirely.

(string)

ExcludedModes -> (list)

Excluded vehicle transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes .

(string)

Transit -> (structure)

Travel mode options when the provided travel mode is Transit .

Note

Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

AccessibilityAttributes -> (list)

Accessibility attributes to consider when calculating the route.

(string)

AllowedModes -> (list)

Allowed transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes .

(string)

ExcludedModes -> (list)

Excluded transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes .

(string)

MaxTransfers -> (integer)

Maximum number of transfers allowed when calculating the route.

Pedestrian -> (structure)

Options for the pedestrian leg of the transit route.

MaxDistance -> (long)

Maximum walking distance allowed.

Unit : meters

Speed -> (double)

Walking speed.

Unit : kilometers per hour

JSON Syntax:

{
  "Car": {
    "EngineType": "Electric"|"InternalCombustion"|"PluginHybrid",
    "LicensePlate": {
      "LastCharacter": "string"
    },
    "MaxSpeed": double,
    "Occupancy": integer
  },
  "Pedestrian": {
    "Speed": double
  },
  "Scooter": {
    "EngineType": "Electric"|"InternalCombustion"|"PluginHybrid",
    "LicensePlate": {
      "LastCharacter": "string"
    },
    "MaxSpeed": double,
    "Occupancy": integer
  },
  "Truck": {
    "AxleCount": integer,
    "EngineType": "Electric"|"InternalCombustion"|"PluginHybrid",
    "GrossWeight": long,
    "HazardousCargos": ["Combustible"|"Corrosive"|"Explosive"|"Flammable"|"Gas"|"HarmfulToWater"|"Organic"|"Other"|"Poison"|"PoisonousInhalation"|"Radioactive", ...],
    "Height": long,
    "HeightAboveFirstAxle": long,
    "KpraLength": long,
    "Length": long,
    "LicensePlate": {
      "LastCharacter": "string"
    },
    "MaxSpeed": double,
    "Occupancy": integer,
    "PayloadCapacity": long,
    "TireCount": integer,
    "Trailer": {
      "AxleCount": integer,
      "TrailerCount": integer
    },
    "TruckType": "LightTruck"|"StraightTruck"|"Tractor",
    "TunnelRestrictionCode": "string",
    "WeightPerAxle": long,
    "WeightPerAxleGroup": {
      "Single": long,
      "Tandem": long,
      "Triple": long,
      "Quad": long,
      "Quint": long
    },
    "Width": long
  },
  "Intermodal": {
    "AccessibilityAttributes": ["Wheelchair", ...],
    "MaxTransfers": integer,
    "Pedestrian": {
      "MaxDistance": long,
      "Speed": double
    },
    "Rental": {
      "AllowedModes": ["All"|"Car", ...],
      "EnabledFor": ["FirstLeg"|"LastLeg"|"EntireRoute"|"None", ...],
      "ExcludedModes": ["All"|"Car", ...]
    },
    "Taxi": {
      "AllowedModes": ["All"|"Car", ...],
      "EnabledFor": ["FirstLeg"|"LastLeg"|"EntireRoute"|"None", ...],
      "ExcludedModes": ["All"|"Car", ...]
    },
    "Transit": {
      "AllowedModes": ["AerialTramway"|"Airplane"|"All"|"Bus"|"BusRapidTransit"|"CityTrain"|"Ferry"|"FunicularRailway"|"HighSpeedTrain"|"IntercityTrain"|"InterregionalTrain"|"LightRail"|"Monorail"|"PrivateBus"|"RegionalTrain"|"Subway", ...],
      "EnabledFor": ["FirstLeg"|"LastLeg"|"EntireRoute"|"None", ...],
      "ExcludedModes": ["AerialTramway"|"Airplane"|"All"|"Bus"|"BusRapidTransit"|"CityTrain"|"Ferry"|"FunicularRailway"|"HighSpeedTrain"|"IntercityTrain"|"InterregionalTrain"|"LightRail"|"Monorail"|"PrivateBus"|"RegionalTrain"|"Subway", ...]
    },
    "Vehicle": {
      "AllowedModes": ["All"|"Car", ...],
      "EnabledFor": ["FirstLeg"|"LastLeg"|"EntireRoute"|"None", ...],
      "ExcludedModes": ["All"|"Car", ...]
    }
  },
  "Transit": {
    "AccessibilityAttributes": ["Wheelchair", ...],
    "AllowedModes": ["AerialTramway"|"Airplane"|"All"|"Bus"|"BusRapidTransit"|"CityTrain"|"Ferry"|"FunicularRailway"|"HighSpeedTrain"|"IntercityTrain"|"InterregionalTrain"|"LightRail"|"Monorail"|"PrivateBus"|"RegionalTrain"|"Subway", ...],
    "ExcludedModes": ["AerialTramway"|"Airplane"|"All"|"Bus"|"BusRapidTransit"|"CityTrain"|"Ferry"|"FunicularRailway"|"HighSpeedTrain"|"IntercityTrain"|"InterregionalTrain"|"LightRail"|"Monorail"|"PrivateBus"|"RegionalTrain"|"Subway", ...],
    "MaxTransfers": integer,
    "Pedestrian": {
      "MaxDistance": long,
      "Speed": double
    }
  }
}

--travel-step-type (string)

Type of step returned by the response. Default provides basic steps intended for web based applications. TurnByTurn provides detailed instructions with more granularity intended for a turn based navigation system. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions Default does not return any steps.

Possible values:

  • Default
  • TurnByTurn

--waypoints (list)

List of waypoints between the Origin and Destination. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions max length is 100 .

Max length: 23

(structure)

Waypoint between the Origin and Destination.

AvoidActionsForDistance -> (long)

Avoids actions for the provided distance. This is typically to consider for users in moving vehicles who may not have sufficient time to make an action at an origin or a destination. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

AvoidUTurns -> (boolean)

Avoid U-turns for calculation on highways and motorways. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

Heading -> (double)

GPS Heading at the position. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

Matching -> (structure)

Options to configure matching the provided position to the road network. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

NameHint -> (string)

Attempts to match the provided position to a road similar to the provided name.

OnRoadThreshold -> (long)

If the distance to a highway/bridge/tunnel/sliproad is within threshold, the waypoint will be snapped to the highway/bridge/tunnel/sliproad.

Unit : meters

Radius -> (long)

Considers all roads within the provided radius to match the provided destination to. The roads that are considered are determined by the provided Strategy.

Unit : meters

Strategy -> (string)

Strategy that defines matching of the position onto the road network. MatchAny considers all roads possible, whereas MatchMostSignificantRoad matches to the most significant road.

PassThrough -> (boolean)

If the waypoint should not be treated as a stop. If yes, the waypoint is passed through and doesn’t split the route into different legs. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

Position -> (list)

Position in World Geodetic System (WGS 84) format: [longitude, latitude].

(double)

SideOfStreet -> (structure)

Options to configure matching the provided position to a side of the street. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

Position -> (list)

Position in World Geodetic System (WGS 84) format: [longitude, latitude].

(double)

UseWith -> (string)

Strategy that defines when the side of street position should be used.

Default value: DividedStreetOnly

StopDuration -> (long)

Duration of the stop. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

Unit : seconds

Shorthand Syntax:

AvoidActionsForDistance=long,AvoidUTurns=boolean,Heading=double,Matching={NameHint=string,OnRoadThreshold=long,Radius=long,Strategy=string},PassThrough=boolean,Position=double,double,SideOfStreet={Position=[double,double],UseWith=string},StopDuration=long ...

JSON Syntax:

[
  {
    "AvoidActionsForDistance": long,
    "AvoidUTurns": true|false,
    "Heading": double,
    "Matching": {
      "NameHint": "string",
      "OnRoadThreshold": long,
      "Radius": long,
      "Strategy": "MatchAny"|"MatchMostSignificantRoad"
    },
    "PassThrough": true|false,
    "Position": [double, ...],
    "SideOfStreet": {
      "Position": [double, ...],
      "UseWith": "AnyStreet"|"DividedStreetOnly"
    },
    "StopDuration": long
  }
  ...
]

--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.

Global Options

--debug (boolean)

Turn on debug logging.

--endpoint-url (string)

Override command’s default URL with the given URL.

--no-verify-ssl (boolean)

By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.

--no-paginate (boolean)

Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.

--output (string)

The formatting style for command output.

  • json
  • text
  • table

--query (string)

A JMESPath query to use in filtering the response data.

--profile (string)

Use a specific profile from your credential file.

--region (string)

The region to use. Overrides config/env settings.

--version (string)

Display the version of this tool.

--color (string)

Turn on/off color output.

  • on
  • off
  • auto

--no-sign-request (boolean)

Do not sign requests. Credentials will not be loaded if this argument is provided.

--ca-bundle (string)

The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.

--cli-read-timeout (int)

The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.

--cli-connect-timeout (int)

The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.

--v2-debug (boolean)

Enable AWS CLI v2 migration assistance. Prints warnings if the command would face a breaking change after swapping AWS CLI v1 for AWS CLI v2 in the current environment. Prints one warning for each breaking change detected.

Output

LegGeometryFormat -> (string)

Specifies the format of the geometry returned for each leg of the route.

Notices -> (list)

Notices are additional information returned that indicate issues that occurred during route calculation. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

(structure)

Notices are additional information returned that indicate issues that occurred during route calculation.

Code -> (string)

Code corresponding to the issue.

Impact -> (string)

Impact corresponding to the issue. While Low impact notices can be safely ignored, High impact notices must be evaluated further to determine the impact.

PricingBucket -> (string)

The pricing bucket for which the query is charged at.

Routes -> (list)

The path from the origin to the destination.

(structure)

The route.

Legs -> (list)

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.

(structure)

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.

FerryLegDetails -> (structure)

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.

AfterTravelSteps -> (list)

Steps of a leg that must be performed after the travel portion of the leg.

(structure)

Steps of a leg that must be performed after the travel portion of the leg.

Duration -> (long)

Duration of the step.

Unit : seconds

Instruction -> (string)

Brief description of the step in the requested language.

Note

Only available when the TravelStepType is Default.

Type -> (string)

Type of the step.

Arrival -> (structure)

Details corresponding to the arrival for the leg.

Place -> (structure)

Place details corresponding to the arrival.

Name -> (string)

The name of the place.

OriginalPosition -> (list)

Position provided in the request.

(double)

Position -> (list)

Position in World Geodetic System (WGS 84) format: [longitude, latitude].

(double)

WaypointIndex -> (integer)

Index of the waypoint in the request.

Time -> (string)

The arrival time.

BeforeTravelSteps -> (list)

Steps of a leg that must be performed before the travel portion of the leg.

(structure)

Steps of a leg that must be performed before the travel portion of the leg.

Duration -> (long)

Duration of the step.

Unit : seconds

Instruction -> (string)

Brief description of the step in the requested language.

Note

Only available when the TravelStepType is Default.

Type -> (string)

Type of the step.

Departure -> (structure)

Details corresponding to the departure for the leg.

Place -> (structure)

Place details corresponding to the departure.

Name -> (string)

The name of the place.

OriginalPosition -> (list)

Position provided in the request.

(double)

Position -> (list)

Position in World Geodetic System (WGS 84) format: [longitude, latitude].

(double)

WaypointIndex -> (integer)

Index of the waypoint in the request.

Time -> (string)

The departure time.

Notices -> (list)

Notices are additional information returned that indicate issues that occurred during route calculation.

(structure)

Notices are additional information returned that indicate issues that occurred during route calculation.

Code -> (string)

Code corresponding to the issue.

Impact -> (string)

Impact corresponding to the issue. While Low impact notices can be safely ignored, High impact notices must be evaluated further to determine the impact.

PassThroughWaypoints -> (list)

Waypoints that were passed through during the leg. This includes the waypoints that were configured with the PassThrough option.

(structure)

If the waypoint should be treated as a stop. If yes, the route is split up into different legs around the stop.

GeometryOffset -> (integer)

Offset in the leg geometry corresponding to the start of this step.

Place -> (structure)

Place details corresponding to the pass-through waypoint.

OriginalPosition -> (list)

Position provided in the request.

(double)

Position -> (list)

Position in World Geodetic System (WGS 84) format: [longitude, latitude].

(double)

WaypointIndex -> (integer)

Index of the waypoint in the request.

RouteName -> (string)

Route name of the ferry line.

Spans -> (list)

Spans that were computed for the requested SpanAdditionalFeatures.

(structure)

Span computed for the requested SpanAdditionalFeatures.

Country -> (string)

3 letter Country code corresponding to the Span.

Distance -> (long)

Distance of the computed span. This feature doesn’t split a span, but is always computed on a span split by other properties.

Unit : meters

Duration -> (long)

Duration of the computed span. This feature doesn’t split a span, but is always computed on a span split by other properties.

Unit : seconds

GeometryOffset -> (integer)

Offset in the leg geometry corresponding to the start of this span.

Names -> (list)

Names of the ferry span in available languages.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

Region -> (string)

2-3 letter Region code corresponding to the Span. This is either a province or a state.

Summary -> (structure)

Summarized details of the leg.

Overview -> (structure)

Summarized details for the leg including before travel, travel and after travel steps.

Distance -> (long)

Distance of the entire leg.

Unit : meters

Duration -> (long)

Duration of the entire leg.

Unit : seconds

TravelOnly -> (structure)

Summarized details for the leg including travel steps only. The Distance for the travel only portion of the journey is in meters

Duration -> (long)

Total duration in free flowing traffic, which is the best case or shortest duration possible to cover the leg.

Unit : seconds

TravelSteps -> (list)

Steps of a leg that must be performed before the travel portion of the leg.

(structure)

Steps of a leg that must be performed during the travel portion of the leg.

Distance -> (long)

Distance of the step.

Duration -> (long)

Duration of the step.

Unit : seconds

GeometryOffset -> (integer)

Offset in the leg geometry corresponding to the start of this step.

Instruction -> (string)

Brief description of the step in the requested language.

Note

Only available when the TravelStepType is Default.

Type -> (string)

Type of the step.

Geometry -> (structure)

Geometry of the area to be avoided.

LineString -> (list)

An ordered list of positions used to plot a route on a map.

Note

LineString and Polyline are mutually exclusive properties.

(list)

(double)

Polyline -> (string)

An ordered list of positions used to plot a route on a map in a lossy compression format.

Note

LineString and Polyline are mutually exclusive properties.

Language -> (string)

List of languages for instructions within steps in the response. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

PedestrianLegDetails -> (structure)

Details related to the pedestrian leg.

AfterTravelSteps -> (list)

Steps of a leg that must be performed after the travel portion of the leg.

(structure)

Steps of a leg that must be performed after the travel portion of the leg.

Duration -> (long)

Duration of the step.

Unit : seconds

Instruction -> (string)

Brief description of the step in the requested language.

Note

Only available when the TravelStepType is Default.

Type -> (string)

Type of the step.

Arrival -> (structure)

Details corresponding to the arrival for the leg.

Place -> (structure)

Place details corresponding to the arrival.

AccessPointDetails -> (structure)

Details of the access point.

Accessibility -> (structure)

Wheelchair accessibility information for the access point.

Wheelchair -> (string)

Wheelchair accessibility status.

Name -> (string)

The name of the place.

OriginalPosition -> (list)

Position provided in the request.

(double)

Position -> (list)

Position in World Geodetic System (WGS 84) format: [longitude, latitude].

(double)

SideOfStreet -> (string)

Options to configure matching the provided position to a side of the street.

StationDetails -> (structure)

Details about the station.

Accessibility -> (structure)

Wheelchair accessibility information for the station.

Wheelchair -> (string)

Wheelchair accessibility status.

PlatformName -> (string)

Platform name or number.

ShortName -> (string)

Short text or a number that identifies the station.

Type -> (string)

The type of the place.

WaypointIndex -> (integer)

Index of the waypoint in the request.

Time -> (string)

The arrival time.

Departure -> (structure)

Details corresponding to the departure for the leg.

Place -> (structure)

Place details corresponding to the departure.

AccessPointDetails -> (structure)

Details of the access point.

Accessibility -> (structure)

Wheelchair accessibility information for the access point.

Wheelchair -> (string)

Wheelchair accessibility status.

Name -> (string)

The name of the place.

OriginalPosition -> (list)

Position provided in the request.

(double)

Position -> (list)

Position in World Geodetic System (WGS 84) format: [longitude, latitude].

(double)

SideOfStreet -> (string)

Options to configure matching the provided position to a side of the street.

StationDetails -> (structure)

Details about the station.

Accessibility -> (structure)

Wheelchair accessibility information for the station.

Wheelchair -> (string)

Wheelchair accessibility status.

PlatformName -> (string)

Platform name or number.

ShortName -> (string)

Short text or a number that identifies the station.

Type -> (string)

The type of the place.

WaypointIndex -> (integer)

Index of the waypoint in the request.

Time -> (string)

The departure time.

Notices -> (list)

Notices are additional information returned that indicate issues that occurred during route calculation. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

(structure)

Notices are additional information returned that indicate issues that occurred during route calculation.

Code -> (string)

Code corresponding to the issue.

Impact -> (string)

Impact corresponding to the issue. While Low impact notices can be safely ignored, High impact notices must be evaluated further to determine the impact.

PassThroughWaypoints -> (list)

Waypoints that were passed through during the leg. This includes the waypoints that were configured with the PassThrough option.

(structure)

If the waypoint should be treated as a stop. If yes, the route is split up into different legs around the stop.

GeometryOffset -> (integer)

Offset in the leg geometry corresponding to the start of this step.

Place -> (structure)

Place details corresponding to the pass-through waypoint.

OriginalPosition -> (list)

Position provided in the request.

(double)

Position -> (list)

Position in World Geodetic System (WGS 84) format: [longitude, latitude].

(double)

WaypointIndex -> (integer)

Index of the waypoint in the request.

Spans -> (list)

Spans that were computed for the requested SpanAdditionalFeatures. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

(structure)

Span computed for the requested SpanAdditionalFeatures.

BestCaseDuration -> (long)

Duration of the computed span without traffic congestion.

Unit : seconds

Country -> (string)

3 letter Country code corresponding to the Span.

Distance -> (long)

Distance of the computed span. This feature doesn’t split a span, but is always computed on a span split by other properties.

Duration -> (long)

Duration of the computed span. This feature doesn’t split a span, but is always computed on a span split by other properties.

Unit : seconds

DynamicSpeed -> (structure)

Dynamic speed details corresponding to the span.

Unit : kilometers per hour

BestCaseSpeed -> (double)

Estimated speed while traversing the span without traffic congestion.

Unit : kilometers per hour

TurnDuration -> (long)

Estimated time to turn from this span into the next.

Unit : seconds

TypicalSpeed -> (double)

Estimated speed while traversing the span under typical traffic congestion.

Unit : kilometers per hour

FunctionalClassification -> (integer)

A numerical value indicating the functional classification of the road segment corresponding to the span.

Classification values are part of the hierarchical network that helps determine a logical and efficient route, and have the following definitions:

  • Roads that allow for high volume, maximum speed traffic movement between and through major metropolitan areas.
  • Roads that are used to channel traffic to functional class 1 roads for travel between and through cities in the shortest amount of time.
  • Roads that intersect functional class 2 roads and provide a high volume of traffic movement at a lower level of mobility than functional class 2 roads.
  • Roads that provide for a high volume of traffic movement at moderate speeds between neighborhoods.
  • Roads with volume and traffic movement below the level of any other functional class.

GeometryOffset -> (integer)

Offset in the leg geometry corresponding to the start of this span.

Incidents -> (list)

Incidents corresponding to the span. These index into the Incidents in the parent Leg.

(integer)

Names -> (list)

Provides an array of names of the pedestrian span in available languages.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

PedestrianAccess -> (list)

Access attributes for a pedestrian corresponding to the span.

(string)

Region -> (string)

2-3 letter Region code corresponding to the Span. This is either a province or a state.

RoadAttributes -> (list)

Attributes for the road segment corresponding to the span.

(string)

RouteNumbers -> (list)

Designated route name or number corresponding to the span.

(structure)

The route number.

Direction -> (string)

Directional identifier of the route.

Language -> (string)

List of languages for instructions corresponding to the route number.

Value -> (string)

The route number.

SpeedLimit -> (structure)

Speed limit details corresponding to the span.

Unit : kilometers per hour

MaxSpeed -> (double)

Maximum speed.

Unit : kilometers per hour

Unlimited -> (boolean)

If the span doesn’t have a speed limit like the Autobahn.

TypicalDuration -> (long)

Duration of the computed span under typical traffic congestion.

Unit : seconds

Summary -> (structure)

Summarized details of the leg.

Overview -> (structure)

Summarized details for the leg including before travel, travel and after travel steps.

Distance -> (long)

Distance of the entire leg.

Unit : meters

Duration -> (long)

Duration of the entire leg.

Unit : seconds

TravelOnly -> (structure)

Summarized details for the leg including travel steps only. The Distance for the travel only portion of the journey is in meters

Duration -> (long)

Duration of the step.

Unit : seconds

TravelSteps -> (list)

Steps of a leg that must be performed before the travel portion of the leg.

(structure)

Steps of a leg that must be performed during the travel portion of the leg.

ContinueStepDetails -> (structure)

Details related to the continue step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

CurrentRoad -> (structure)

Details of the current road. See RouteRoad for details of sub-attributes.

RoadName -> (list)

Name of the road (localized).

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

RouteNumber -> (list)

Route number of the road.

(structure)

The route number.

Direction -> (string)

Directional identifier of the route.

Language -> (string)

List of languages for instructions corresponding to the route number.

Value -> (string)

The route number.

Towards -> (list)

Names of destinations that can be reached when traveling on the road.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

Type -> (string)

The type of road.

Distance -> (long)

Distance of the step.

Duration -> (long)

Duration of the step.

Unit : seconds

ExitNumber -> (list)

Exit number of the road exit, if applicable.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

GeometryOffset -> (integer)

Offset in the leg geometry corresponding to the start of this step.

Instruction -> (string)

Brief description of the step in the requested language.

Note

Only available when the TravelStepType is Default.

KeepStepDetails -> (structure)

Details that are specific to a Keep step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

NextRoad -> (structure)

Details of the next road. See RouteRoad for details of sub-attributes.

RoadName -> (list)

Name of the road (localized).

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

RouteNumber -> (list)

Route number of the road.

(structure)

The route number.

Direction -> (string)

Directional identifier of the route.

Language -> (string)

List of languages for instructions corresponding to the route number.

Value -> (string)

The route number.

Towards -> (list)

Names of destinations that can be reached when traveling on the road.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

Type -> (string)

The type of road.

RoundaboutEnterStepDetails -> (structure)

Details that are specific to a Roundabout Enter step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

RoundaboutExitStepDetails -> (structure)

Details that are specific to a Roundabout Exit step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

RelativeExit -> (integer)

Exit to be taken.

RoundaboutAngle -> (double)

Angle of the roundabout.

SteeringDirection -> (string)

Steering direction for the step.

RoundaboutPassStepDetails -> (structure)

Details that are specific to a Roundabout Pass step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

Signpost -> (structure)

Sign post information of the action, applicable only for TurnByTurn steps. See RouteSignpost for details of sub-attributes.

Labels -> (list)

Labels present on the sign post.

(structure)

Labels presented on the sign post.

RouteNumber -> (structure)

Route number of the road.

Direction -> (string)

Directional identifier of the route.

Language -> (string)

List of languages for instructions corresponding to the route number.

Value -> (string)

The route number.

Text -> (structure)

The Signpost text.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

TurnStepDetails -> (structure)

Details that are specific to a turn step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

Type -> (string)

Type of the step.

TravelMode -> (string)

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

Default value: Car

Type -> (string)

Type of the leg.

VehicleLegDetails -> (structure)

Details related to the vehicle leg.

AfterTravelSteps -> (list)

Steps of a leg that must be performed after the travel portion of the leg.

(structure)

Steps of a leg that must be performed after the travel portion of the leg.

ChargeStepDetails -> (structure)

Details that are specific to a Charge step.

Unit : KwH

ArrivalCharge -> (double)

Estimated vehicle battery charge before this step (in kWh).

ConsumablePower -> (double)

Maximum charging power available to the vehicle.

Unit : KwH

DesiredCharge -> (double)

Details that are specific to a Charge step.

Unit : KwH

Duration -> (long)

Duration of the step.

Unit : seconds

Instruction -> (string)

Brief description of the step in the requested language.

Note

Only available when the TravelStepType is Default.

Type -> (string)

Type of the step.

Arrival -> (structure)

Details corresponding to the arrival for the leg.

Place -> (structure)

Place details corresponding to the arrival.

Name -> (string)

The name of the place.

OriginalPosition -> (list)

Position provided in the request.

(double)

Position -> (list)

Position in World Geodetic System (WGS 84) format: [longitude, latitude].

(double)

SideOfStreet -> (string)

Options to configure matching the provided position to a side of the street.

WaypointIndex -> (integer)

Index of the waypoint in the request.

AccessPointDetails -> (structure)

Details of the access point.

Accessibility -> (structure)

Wheelchair accessibility information for the access point.

Wheelchair -> (string)

Wheelchair accessibility status.

StationDetails -> (structure)

Details about the station.

Accessibility -> (structure)

Wheelchair accessibility information for the station.

Wheelchair -> (string)

Wheelchair accessibility status.

PlatformName -> (string)

Platform name or number.

ShortName -> (string)

Short text or a number that identifies the station.

Type -> (string)

The type of the place.

Time -> (string)

The arrival time.

Departure -> (structure)

Details corresponding to the departure for the leg.

Place -> (structure)

Place details corresponding to the departure.

Name -> (string)

The name of the place.

OriginalPosition -> (list)

Position provided in the request.

(double)

Position -> (list)

Position in World Geodetic System (WGS 84) format: [longitude, latitude].

(double)

SideOfStreet -> (string)

Options to configure matching the provided position to a side of the street.

WaypointIndex -> (integer)

Index of the waypoint in the request.

AccessPointDetails -> (structure)

Details of the access point.

Accessibility -> (structure)

Wheelchair accessibility information for the access point.

Wheelchair -> (string)

Wheelchair accessibility status.

StationDetails -> (structure)

Details about the station.

Accessibility -> (structure)

Wheelchair accessibility information for the station.

Wheelchair -> (string)

Wheelchair accessibility status.

PlatformName -> (string)

Platform name or number.

ShortName -> (string)

Short text or a number that identifies the station.

Type -> (string)

The type of the place.

Time -> (string)

The departure time.

Incidents -> (list)

Incidents corresponding to this leg of the route. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

(structure)

Incidents corresponding to this leg of the route.

Description -> (string)

Brief readable description of the incident.

EndTime -> (string)

End timestamp of the incident.

Severity -> (string)

Severity of the incident Critical - The part of the route the incident affects is unusable. Major- Major impact on the leg duration, for example stop and go Minor- Minor impact on the leg duration, for example traffic jam Low - Low on duration, for example slightly increased traffic

StartTime -> (string)

Start time of the incident.

Type -> (string)

Type of the incident.

Notices -> (list)

Notices are additional information returned that indicate issues that occurred during route calculation. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

(structure)

Notices are additional information returned that indicate issues that occurred during route calculation.

Code -> (string)

Code corresponding to the issue.

Details -> (list)

Additional details of the notice.

(structure)

Additional details of the notice.

Title -> (string)

The notice title.

ViolatedConstraints -> (structure)

Any violated constraints.

AllHazardsRestricted -> (boolean)

This restriction applies to truck cargo, where the resulting route excludes roads on which hazardous materials are prohibited from being transported.

AxleCount -> (structure)

Total number of axles of the vehicle.

Min -> (integer)

Minimum value for the range.

Max -> (integer)

Maximum value for the range.

HazardousCargos -> (list)

List of Hazardous cargo contained in the vehicle.

(string)

MaxHeight -> (long)

The maximum height of the vehicle.

MaxKpraLength -> (long)

The maximum Kpra length of the vehicle.

Unit : centimeters

MaxLength -> (long)

The maximum length of the vehicle.

MaxPayloadCapacity -> (long)

The maximum load capacity of the vehicle.

Unit : kilograms

MaxWeight -> (structure)

The maximum weight of the route.

Unit : kilograms

Type -> (string)

The type of constraint.

Value -> (long)

The constraint value.

Unit : kilograms

MaxWeightPerAxle -> (long)

The maximum weight per axle of the vehicle.

Unit : kilograms

MaxWeightPerAxleGroup -> (structure)

The maximum weight per axle group of the vehicle.

Unit : kilograms

Single -> (long)

Total weight in kilograms for single axle configurations.

Unit : kilograms

Tandem -> (long)

Total weight in kilograms for tandem (two adjacent) axle configurations.

Unit : kilograms

Triple -> (long)

Total weight in kilograms for triple (three adjacent) axle configurations.

Unit : kilograms

Quad -> (long)

Total weight in kilograms for quad (four adjacent) axle configurations.

Unit : kilograms

Quint -> (long)

Total weight in kilograms for quint (five adjacent) axle configurations.

Unit : kilograms

MaxWidth -> (long)

The maximum width of the vehicle.

Occupancy -> (structure)

The number of occupants in the vehicle.

Default value: 1

Min -> (integer)

Minimum value for the range.

Max -> (integer)

Maximum value for the range.

RestrictedTimes -> (string)

Access radius restrictions based on time.

TimeDependent -> (boolean)

The time dependent constraint.

TrailerCount -> (structure)

Number of trailers attached to the vehicle.

Default value: 0

Min -> (integer)

Minimum value for the range.

Max -> (integer)

Maximum value for the range.

TravelMode -> (boolean)

Travel mode corresponding to the leg.

TruckRoadType -> (string)

Truck road type identifiers. BK1 through BK4 apply only to Sweden. A2,A4,B2,B4,C,D,ET2,ET4 apply only to Mexico.

Note

There are currently no other supported values as of 26th April 2024.

TruckType -> (string)

The type of truck: LightTruck for smaller delivery vehicles, StraightTruck for rigid body trucks, or Tractor for tractor-trailer combinations.

TunnelRestrictionCode -> (string)

The tunnel restriction code.

Tunnel categories in this list indicate the restrictions which apply to certain tunnels in Great Britain. They relate to the types of dangerous goods that can be transported through them.

  • Tunnel Category B
    • Risk Level : Limited risk
    • Restrictions : Few restrictions
  • Tunnel Category C
    • Risk Level : Medium risk
    • Restrictions : Some restrictions
  • Tunnel Category D
    • Risk Level : High risk
    • Restrictions : Many restrictions occur
  • Tunnel Category E
    • Risk Level : Very high risk
    • Restrictions : Restricted tunnel

Impact -> (string)

Impact corresponding to the issue. While Low impact notices can be safely ignored, High impact notices must be evaluated further to determine the impact.

PassThroughWaypoints -> (list)

Waypoints that were passed through during the leg. This includes the waypoints that were configured with the PassThrough option.

(structure)

If the waypoint should be treated as a stop. If yes, the route is split up into different legs around the stop.

GeometryOffset -> (integer)

Offset in the leg geometry corresponding to the start of this step.

Place -> (structure)

Place details corresponding to the pass-through waypoint.

OriginalPosition -> (list)

Position provided in the request.

(double)

Position -> (list)

Position in World Geodetic System (WGS 84) format: [longitude, latitude].

(double)

WaypointIndex -> (integer)

Index of the waypoint in the request.

Spans -> (list)

Spans that were computed for the requested SpanAdditionalFeatures. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

(structure)

Span computed for the requested SpanAdditionalFeatures.

BestCaseDuration -> (long)

Duration of the computed span without traffic congestion.

Unit : seconds

CarAccess -> (list)

Access attributes for a car corresponding to the span.

(string)

Country -> (string)

3 letter Country code corresponding to the Span.

Distance -> (long)

Distance of the computed span. This feature doesn’t split a span, but is always computed on a span split by other properties.

Duration -> (long)

Duration of the computed span. This feature doesn’t split a span, but is always computed on a span split by other properties.

Unit : seconds

DynamicSpeed -> (structure)

Dynamic speed details corresponding to the span.

Unit : kilometers per hour

BestCaseSpeed -> (double)

Estimated speed while traversing the span without traffic congestion.

Unit : kilometers per hour

TurnDuration -> (long)

Estimated time to turn from this span into the next.

Unit : seconds

TypicalSpeed -> (double)

Estimated speed while traversing the span under typical traffic congestion.

Unit : kilometers per hour

FunctionalClassification -> (integer)

A numerical value indicating the functional classification of the road segment corresponding to the span.

Classification values are part of the hierarchical network that helps determine a logical and efficient route, and have the following definitions:

  • Roads that allow for high volume, maximum speed traffic movement between and through major metropolitan areas.
  • Roads that are used to channel traffic to functional class 1 roads for travel between and through cities in the shortest amount of time.
  • Roads that intersect functional class 2 roads and provide a high volume of traffic movement at a lower level of mobility than functional class 2 roads.
  • Roads that provide for a high volume of traffic movement at moderate speeds between neighborhoods.
  • Roads with volume and traffic movement below the level of any other functional class.

Gate -> (string)

Attributes corresponding to a gate. The gate is present at the end of the returned span.

GeometryOffset -> (integer)

Offset in the leg geometry corresponding to the start of this span.

Incidents -> (list)

Incidents corresponding to the span. These index into the Incidents in the parent Leg.

(integer)

Names -> (list)

Provides an array of names of the vehicle span in available languages.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

Notices -> (list)

Notices are additional information returned that indicate issues that occurred during route calculation.

(integer)

RailwayCrossing -> (string)

Attributes corresponding to a railway crossing. The gate is present at the end of the returned span.

Region -> (string)

2-3 letter Region code corresponding to the Span. This is either a province or a state.

RoadAttributes -> (list)

Attributes for the road segment corresponding to the span.

(string)

RouteNumbers -> (list)

Designated route name or number corresponding to the span.

(structure)

The route number.

Direction -> (string)

Directional identifier of the route.

Language -> (string)

List of languages for instructions corresponding to the route number.

Value -> (string)

The route number.

ScooterAccess -> (list)

Access attributes for a scooter corresponding to the span.

(string)

SpeedLimit -> (structure)

Speed limit details corresponding to the span.

Unit : kilometers per hour

MaxSpeed -> (double)

Maximum speed.

Unit : kilometers per hour

Unlimited -> (boolean)

If the span doesn’t have a speed limit like the Autobahn.

TollSystems -> (list)

Toll systems are authorities that collect payments for the toll.

(integer)

TruckAccess -> (list)

Access attributes for a truck corresponding to the span.

(string)

TruckRoadTypes -> (list)

Truck road type identifiers. BK1 through BK4 apply only to Sweden. A2,A4,B2,B4,C,D,ET2,ET4 apply only to Mexico.

Note

There are currently no other supported values as of 26th April 2024.

(integer)

TypicalDuration -> (long)

Duration of the computed span under typical traffic congestion.

Unit : seconds

Zones -> (list)

Zones corresponding to this leg of the route.

(integer)

Summary -> (structure)

Summarized details of the leg.

Overview -> (structure)

Summarized details for the leg including before travel, travel and after travel steps.

BestCaseDuration -> (long)

Total duration in free flowing traffic, which is the best case or shortest duration possible to cover the leg.

Unit : seconds

Distance -> (long)

Distance of the entire leg.

Unit : meters

Duration -> (long)

Duration of the entire leg.

Unit : seconds

TypicalDuration -> (long)

Duration of the leg under typical traffic congestion.

Unit : seconds

TravelOnly -> (structure)

Summarized details for the leg including travel steps only. The Distance for the travel only portion of the journey is in meters

BestCaseDuration -> (long)

Total duration in free flowing traffic, which is the best case or shortest duration possible to cover the leg.

Unit : seconds

Duration -> (long)

Duration of the step.

Unit : seconds

TypicalDuration -> (long)

Duration of the leg under typical traffic congestion.

Unit : seconds

Tolls -> (list)

Toll related options. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

(structure)

Provides details about toll information along a route, including the payment sites, applicable toll rates, toll systems, and the country associated with the toll collection.

Country -> (string)

The alpha-2 or alpha-3 character code for the country.

PaymentSites -> (list)

Locations or sites where the toll fare is collected.

(structure)

Locations or sites where the toll fare is collected.

Name -> (string)

Name of the payment site.

Position -> (list)

Position in World Geodetic System (WGS 84) format: [longitude, latitude].

(double)

Rates -> (list)

Toll rates that need to be paid to travel this leg of the route.

(structure)

The toll rate.

ApplicableTimes -> (string)

Time when the rate is valid.

ConvertedPrice -> (structure)

Price in the converted currency as specified in the request.

Currency -> (string)

Currency code corresponding to the price. This is the same as Currency specified in the request.

Estimate -> (boolean)

If the price is an estimate or an exact value.

PerDuration -> (long)

Duration for which the price corresponds to.

Unit : seconds

Range -> (boolean)

If the price is a range or an exact value. If any of the toll fares making up the route is a range, the overall price is also a range.

RangeValue -> (structure)

Price range with a minimum and maximum value, if a range.

Min -> (double)

Minimum price.

Max -> (double)

Maximum price.

Value -> (double)

Exact price, if not a range.

Id -> (string)

The Toll rate Id.

LocalPrice -> (structure)

Price in the local regional currency.

Currency -> (string)

Currency code corresponding to the price. This is the same as Currency specified in the request.

Estimate -> (boolean)

If the price is an estimate or an exact value.

PerDuration -> (long)

Duration for which the price corresponds to.

Unit : seconds

Range -> (boolean)

If the price is a range or an exact value. If any of the toll fares making up the route is a range, the overall price is also a range.

RangeValue -> (structure)

Price range with a minimum and maximum value, if a range.

Min -> (double)

Minimum price.

Max -> (double)

Maximum price.

Value -> (double)

Exact price, if not a range.

Name -> (string)

The name of the toll.

Pass -> (structure)

Details if the toll rate can be a pass that supports multiple trips.

IncludesReturnTrip -> (boolean)

If the pass includes the rate for the return leg of the trip.

SeniorPass -> (boolean)

If the pass is only valid for senior persons.

TransferCount -> (integer)

If the toll pass can be transferred, and how many times.

TripCount -> (integer)

Number of trips the pass is valid for.

ValidityPeriod -> (structure)

Period for which the pass is valid.

Period -> (string)

Validity period.

PeriodCount -> (integer)

Counts for the validity period.

PaymentMethods -> (list)

Accepted payment methods at the toll.

(string)

Transponders -> (list)

Transponders for which this toll can be applied.

(structure)

Transponders for which this toll can be applied.

SystemName -> (string)

Names of the toll system collecting the toll.

Systems -> (list)

Toll systems are authorities that collect payments for the toll.

(integer)

TollSystems -> (list)

Toll systems are authorities that collect payments for the toll. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

(structure)

Toll systems are authorities that collect payments for the toll.

Name -> (string)

The toll system name.

TravelSteps -> (list)

Steps of a leg that must be performed before the travel portion of the leg.

(structure)

Steps of a leg that correspond to the travel portion of the leg.

ContinueHighwayStepDetails -> (structure)

Details that are specific to a Continue Highway step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

ContinueStepDetails -> (structure)

Details that are specific to a Continue step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

CurrentRoad -> (structure)

Details of the current road.

RoadName -> (list)

Name of the road (localized).

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

RouteNumber -> (list)

Route number of the road.

(structure)

The route number.

Direction -> (string)

Directional identifier of the route.

Language -> (string)

List of languages for instructions corresponding to the route number.

Value -> (string)

The route number.

Towards -> (list)

Names of destinations that can be reached when traveling on the road.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

Type -> (string)

The type of road.

Distance -> (long)

Distance of the step.

Duration -> (long)

Duration of the step.

Unit : seconds

EnterHighwayStepDetails -> (structure)

Details that are specific to a Enter Highway step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

ExitNumber -> (list)

Exit number of the road exit, if applicable.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

ExitStepDetails -> (structure)

Details that are specific to a Roundabout Exit step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

RelativeExit -> (integer)

Exit to be taken.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

GeometryOffset -> (integer)

Offset in the leg geometry corresponding to the start of this step.

Instruction -> (string)

Brief description of the step in the requested language.

Note

Only available when the TravelStepType is Default.

KeepStepDetails -> (structure)

Details that are specific to a Keep step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

NextRoad -> (structure)

Details of the next road. See RouteRoad for details of sub-attributes.

RoadName -> (list)

Name of the road (localized).

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

RouteNumber -> (list)

Route number of the road.

(structure)

The route number.

Direction -> (string)

Directional identifier of the route.

Language -> (string)

List of languages for instructions corresponding to the route number.

Value -> (string)

The route number.

Towards -> (list)

Names of destinations that can be reached when traveling on the road.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

Type -> (string)

The type of road.

RampStepDetails -> (structure)

Details that are specific to a Ramp step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

RoundaboutEnterStepDetails -> (structure)

Details that are specific to a Roundabout Enter step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

RoundaboutExitStepDetails -> (structure)

Details that are specific to a Roundabout Exit step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

RelativeExit -> (integer)

Exit to be taken.

RoundaboutAngle -> (double)

Angle of the roundabout.

SteeringDirection -> (string)

Steering direction for the step.

RoundaboutPassStepDetails -> (structure)

Details that are specific to a Roundabout Pass step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

Signpost -> (structure)

Sign post information of the action, applicable only for TurnByTurn steps. See RouteSignpost for details of sub-attributes.

Labels -> (list)

Labels present on the sign post.

(structure)

Labels presented on the sign post.

RouteNumber -> (structure)

Route number of the road.

Direction -> (string)

Directional identifier of the route.

Language -> (string)

List of languages for instructions corresponding to the route number.

Value -> (string)

The route number.

Text -> (structure)

The Signpost text.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

TurnStepDetails -> (structure)

Details that are specific to a Turn step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

Type -> (string)

Type of the step.

UTurnStepDetails -> (structure)

Details that are specific to a Turn step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

TruckRoadTypes -> (list)

Truck road type identifiers. BK1 through BK4 apply only to Sweden. A2,A4,B2,B4,C,D,ET2,ET4 apply only to Mexico. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

Note

There are currently no other supported values as of 26th April 2024.

(string)

Zones -> (list)

Zones corresponding to this leg of the route. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

(structure)

The zone.

Category -> (string)

The zone category.

Name -> (string)

The name of the zone.

RentalLegDetails -> (structure)

Details related to the rental leg.

Note

Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

AfterTravelSteps -> (list)

Steps of a leg that must be performed after the travel portion of the leg.

(structure)

A step that must be performed after the travel portion of the leg.

Duration -> (long)

Duration of the step.

Unit : seconds

Instruction -> (string)

Brief description of the step in the requested language.

Type -> (string)

Type of the step.

Agency -> (structure)

Details about the rental agency.

Name -> (string)

Name of the agency.

Url -> (string)

URL to the agency’s website.

Arrival -> (structure)

Details corresponding to the arrival for the leg.

Place -> (structure)

Place details corresponding to the arrival.

AccessPointDetails -> (structure)

Details of the access point.

Accessibility -> (structure)

Wheelchair accessibility information for the access point.

Wheelchair -> (string)

Wheelchair accessibility status.

Name -> (string)

The name of the place.

OriginalPosition -> (list)

Position provided in the request.

(double)

Position -> (list)

Position in World Geodetic System (WGS 84) format: [longitude, latitude].

(double)

StationDetails -> (structure)

Details about the station.

Accessibility -> (structure)

Wheelchair accessibility information for the station.

Wheelchair -> (string)

Wheelchair accessibility status.

PlatformName -> (string)

Platform name or number.

ShortName -> (string)

Short text or a number that identifies the station.

Type -> (string)

The type of the place.

WaypointIndex -> (integer)

Index of the waypoint in the request.

Time -> (string)

The arrival time.

Attributions -> (list)

List of required attributions to display.

(structure)

Required attribution to display.

AttributionType -> (string)

The type of the attribution link.

WebLink -> (structure)

The URL to an external resource.

AnchorText -> (string)

The interactive or clickable portion of the text.

Description -> (string)

Text describing the URL.

DeviceType -> (string)

Device type for which the link is intended.

Url -> (string)

The URL of the link.

BeforeTravelSteps -> (list)

Steps of a leg that must be performed before the travel portion of the leg.

(structure)

A step that must be performed before the travel portion of the leg.

Duration -> (long)

Duration of the step.

Unit : seconds

Instruction -> (string)

Brief description of the step in the requested language.

Type -> (string)

Type of the step.

BookingWebLinks -> (list)

Web links to external ticket booking services for the rental.

(structure)

The URL to an external resource.

AnchorText -> (string)

The interactive or clickable portion of the text.

Description -> (string)

Text describing the URL.

DeviceType -> (string)

Device type for which the link is intended.

Url -> (string)

The URL of the link.

Departure -> (structure)

Details corresponding to the departure for the leg.

Place -> (structure)

Place details corresponding to the departure.

AccessPointDetails -> (structure)

Details of the access point.

Accessibility -> (structure)

Wheelchair accessibility information for the access point.

Wheelchair -> (string)

Wheelchair accessibility status.

Name -> (string)

The name of the place.

OriginalPosition -> (list)

Position provided in the request.

(double)

Position -> (list)

Position in World Geodetic System (WGS 84) format: [longitude, latitude].

(double)

StationDetails -> (structure)

Details about the station.

Accessibility -> (structure)

Wheelchair accessibility information for the station.

Wheelchair -> (string)

Wheelchair accessibility status.

PlatformName -> (string)

Platform name or number.

ShortName -> (string)

Short text or a number that identifies the station.

Type -> (string)

The type of the place.

WaypointIndex -> (integer)

Index of the waypoint in the request.

Time -> (string)

The departure time.

Summary -> (structure)

Summary of the rental leg.

Overview -> (structure)

Summary including duration and distance for the entire leg.

Duration -> (long)

Duration of the entire leg.

Unit : seconds

Distance -> (long)

Distance of the entire leg.

Unit : meters

TravelOnly -> (structure)

Summary including duration and distance for the travel portion of the leg only.

Duration -> (long)

Duration of the travel portion of the rental leg.

Unit : seconds

Transport -> (structure)

Transport mode details for the rental leg.

AvailableSeats -> (integer)

Number of available seats in the vehicle.

Category -> (string)

Human readable transport category.

Color -> (string)

Color of the transport polyline and background for the transport name.

Engine -> (string)

Vehicle engine type.

LicensePlate -> (string)

Vehicle license plate number.

Mode -> (string)

Mode of the rental transport.

Model -> (string)

Vehicle model.

Name -> (string)

Vehicle name or mobility provider name.

TextColor -> (string)

Color of the transport name text.

TravelSteps -> (list)

Steps of a leg that must be performed during the travel portion of the leg.

(structure)

A step that must be performed during the travel portion of the leg.

ContinueStepDetails -> (structure)

Details related to the continue step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

Distance -> (long)

Distance of the step.

Unit : meters

Duration -> (long)

Duration of the step.

Unit : seconds

ExitStepDetails -> (structure)

Details related to the exit step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

RelativeExit -> (integer)

Exit to be taken.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

GeometryOffset -> (integer)

Offset in the leg geometry corresponding to the start of this step.

Instruction -> (string)

Brief description of the step in the requested language.

KeepStepDetails -> (structure)

Details that are specific to a Keep step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

RampStepDetails -> (structure)

Details that are specific to a ramp step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

RoundaboutEnterStepDetails -> (structure)

Details about the roundabout leg.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

RoundaboutExitStepDetails -> (structure)

Details about the roundabout step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

RelativeExit -> (integer)

Exit to be taken.

RoundaboutAngle -> (double)

Angle of the roundabout.

SteeringDirection -> (string)

Steering direction for the step.

RoundaboutPassStepDetails -> (structure)

Details about the step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

TurnStepDetails -> (structure)

Details related to the turn step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

Type -> (string)

Type of the step.

UTurnStepDetails -> (structure)

Details related to the U-turn step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

TaxiLegDetails -> (structure)

Details related to the taxi leg.

Note

Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

AfterTravelSteps -> (list)

Steps of a leg that must be performed after the travel portion of the leg.

(structure)

A step that must be performed after the travel portion of the leg.

Duration -> (long)

Duration of the step.

Unit : seconds

Instruction -> (string)

Brief description of the step in the requested language.

Type -> (string)

Type of the step.

Agency -> (structure)

Details about the taxi agency.

Name -> (string)

Name of the agency.

Url -> (string)

URL to the agency’s website.

Arrival -> (structure)

Details corresponding to the arrival for the leg.

Place -> (structure)

Place details corresponding to the arrival.

AccessPointDetails -> (structure)

Details of the access point.

Accessibility -> (structure)

Wheelchair accessibility information for the access point.

Wheelchair -> (string)

Wheelchair accessibility status.

Name -> (string)

The name of the place.

OriginalPosition -> (list)

Position provided in the request.

(double)

Position -> (list)

Position in World Geodetic System (WGS 84) format: [longitude, latitude].

(double)

StationDetails -> (structure)

Details about the station.

Accessibility -> (structure)

Wheelchair accessibility information for the station.

Wheelchair -> (string)

Wheelchair accessibility status.

PlatformName -> (string)

Platform name or number.

ShortName -> (string)

Short text or a number that identifies the station.

Type -> (string)

The type of the place.

WaypointIndex -> (integer)

Index of the waypoint in the request.

Time -> (string)

The arrival time.

Attributions -> (list)

List of required attributions to display.

(structure)

Required attribution to display.

AttributionType -> (string)

The type of the attribution link.

WebLink -> (structure)

The URL to an external resource.

AnchorText -> (string)

The interactive or clickable portion of the text.

Description -> (string)

Text describing the URL.

DeviceType -> (string)

Device type for which the link is intended.

Url -> (string)

The URL of the link.

BeforeTravelSteps -> (list)

Steps of a leg that must be performed before the travel portion of the leg.

(structure)

A step that must be performed before the travel portion of the leg.

Duration -> (long)

Duration of the step.

Unit : seconds

Instruction -> (string)

Brief description of the step in the requested language.

Type -> (string)

Type of the step.

BookingWebLinks -> (list)

Web links to external ticket booking services for the taxi.

(structure)

The URL to an external resource.

AnchorText -> (string)

The interactive or clickable portion of the text.

Description -> (string)

Text describing the URL.

DeviceType -> (string)

Device type for which the link is intended.

Url -> (string)

The URL of the link.

Departure -> (structure)

Details corresponding to the departure for the leg.

Place -> (structure)

Place details corresponding to the departure.

AccessPointDetails -> (structure)

Details of the access point.

Accessibility -> (structure)

Wheelchair accessibility information for the access point.

Wheelchair -> (string)

Wheelchair accessibility status.

Name -> (string)

The name of the place.

OriginalPosition -> (list)

Position provided in the request.

(double)

Position -> (list)

Position in World Geodetic System (WGS 84) format: [longitude, latitude].

(double)

StationDetails -> (structure)

Details about the station.

Accessibility -> (structure)

Wheelchair accessibility information for the station.

Wheelchair -> (string)

Wheelchair accessibility status.

PlatformName -> (string)

Platform name or number.

ShortName -> (string)

Short text or a number that identifies the station.

Type -> (string)

The type of the place.

WaypointIndex -> (integer)

Index of the waypoint in the request.

Time -> (string)

The departure time.

Notices -> (list)

List of notices that indicate issues that occurred during route calculation.

(structure)

A notice that indicates an issue that occurred during route calculation.

Code -> (string)

Code corresponding to the issue.

Impact -> (string)

Impact corresponding to the issue. While Low impact notices can be safely ignored, High impact notices must be evaluated further to determine the impact.

Summary -> (structure)

Summary of the taxi leg.

Overview -> (structure)

Summary including duration and distance for the entire leg.

Duration -> (long)

Duration of the entire leg.

Unit : seconds

Distance -> (long)

Distance of the entire leg.

Unit : meters

TravelOnly -> (structure)

Summary including duration and distance for the travel portion of the leg only.

Duration -> (long)

Duration of the travel portion of the taxi leg.

Unit : seconds

Transport -> (structure)

Transport mode details for the taxi leg.

AvailableSeats -> (integer)

Number of available seats in the vehicle.

Category -> (string)

Human readable transport category.

Color -> (string)

Color of the transport polyline and background for the transport name.

Engine -> (string)

Vehicle engine type.

LicensePlate -> (string)

Vehicle license plate number.

Mode -> (string)

Mode of the taxi transport.

Model -> (string)

Vehicle model.

Name -> (string)

Vehicle name or mobility provider name.

TextColor -> (string)

Color of the transport name text.

TravelSteps -> (list)

Steps of a leg that must be performed during the travel portion of the leg.

(structure)

A step that must be performed during the travel portion of the leg.

ContinueStepDetails -> (structure)

Details related to the continue step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

Distance -> (long)

Distance of the step.

Unit : meters

Duration -> (long)

Duration of the step.

Unit : seconds

ExitStepDetails -> (structure)

Details related to the exit step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

RelativeExit -> (integer)

Exit to be taken.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

GeometryOffset -> (integer)

Offset in the leg geometry corresponding to the start of this step.

Instruction -> (string)

Brief description of the step in the requested language.

KeepStepDetails -> (structure)

Details that are specific to a Keep step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

RampStepDetails -> (structure)

Details that are specific to a ramp step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

RoundaboutEnterStepDetails -> (structure)

Details about the roundabout leg.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

RoundaboutExitStepDetails -> (structure)

Details about the roundabout step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

RelativeExit -> (integer)

Exit to be taken.

RoundaboutAngle -> (double)

Angle of the roundabout.

SteeringDirection -> (string)

Steering direction for the step.

RoundaboutPassStepDetails -> (structure)

Details about the step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

TurnStepDetails -> (structure)

Details related to the turn step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

Type -> (string)

Type of the step.

UTurnStepDetails -> (structure)

Details related to the U-turn step.

Intersection -> (list)

Name of the intersection, if applicable to the step.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

SteeringDirection -> (string)

Steering direction for the step.

TurnAngle -> (double)

Angle of the turn.

TurnIntensity -> (string)

Intensity of the turn.

TransitLegDetails -> (structure)

Details related to the transit leg.

AfterTravelSteps -> (list)

Steps of a leg that must be performed after the travel portion of the leg.

(structure)

A step that must be performed after the travel portion of the leg.

Duration -> (long)

Duration of the step.

Unit : seconds

Instruction -> (string)

Brief description of the step in the requested language.

Type -> (string)

Type of the step.

Agency -> (structure)

Details about the transit agency.

Name -> (string)

Name of the agency.

Url -> (string)

URL to the agency’s website.

Arrival -> (structure)

Details corresponding to the arrival for the leg.

Delay -> (long)

The delay from the scheduled arrival time.

Unit : seconds

Place -> (structure)

Place details corresponding to the arrival.

Name -> (string)

The name of the place.

OriginalPosition -> (list)

Position provided in the request.

(double)

Position -> (list)

Position in World Geodetic System (WGS 84) format: [longitude, latitude].

(double)

StationDetails -> (structure)

Details about the station.

Accessibility -> (structure)

Wheelchair accessibility information for the station.

Wheelchair -> (string)

Wheelchair accessibility status.

PlatformName -> (string)

Platform name or number.

ShortName -> (string)

Short text or a number that identifies the station.

Type -> (string)

The type of the place.

WaypointIndex -> (integer)

Index of the waypoint in the request.

Status -> (string)

The status of the arrival.

Time -> (string)

The arrival time.

Attributions -> (list)

List of required attributions to display.

(structure)

Required attribution to display.

AttributionType -> (string)

The type of the attribution link.

WebLink -> (structure)

The URL to an external resource.

AnchorText -> (string)

The interactive or clickable portion of the text.

Description -> (string)

Text describing the URL.

DeviceType -> (string)

Device type for which the link is intended.

Url -> (string)

The URL of the link.

BeforeTravelSteps -> (list)

Steps of a leg that must be performed before the travel portion of the leg.

(structure)

A step that must be performed before the travel portion of the leg.

Duration -> (long)

Duration of the step.

Unit : seconds

Instruction -> (string)

Brief description of the step in the requested language.

Type -> (string)

Type of the step.

BookingWebLinks -> (list)

Web links to external ticket booking services for the transit.

(structure)

The URL to an external resource.

AnchorText -> (string)

The interactive or clickable portion of the text.

Description -> (string)

Text describing the URL.

DeviceType -> (string)

Device type for which the link is intended.

Url -> (string)

The URL of the link.

Departure -> (structure)

Details corresponding to the departure for the leg.

Delay -> (long)

The delay from the scheduled departure time.

Unit : seconds

Place -> (structure)

Place details corresponding to the departure.

Name -> (string)

The name of the place.

OriginalPosition -> (list)

Position provided in the request.

(double)

Position -> (list)

Position in World Geodetic System (WGS 84) format: [longitude, latitude].

(double)

StationDetails -> (structure)

Details about the station.

Accessibility -> (structure)

Wheelchair accessibility information for the station.

Wheelchair -> (string)

Wheelchair accessibility status.

PlatformName -> (string)

Platform name or number.

ShortName -> (string)

Short text or a number that identifies the station.

Type -> (string)

The type of the place.

WaypointIndex -> (integer)

Index of the waypoint in the request.

Status -> (string)

The status of the departure.

Time -> (string)

The departure time.

Incidents -> (list)

Incidents affecting this leg of the transit route.

(structure)

An incident describes disruptions on the transit route.

Description -> (string)

A human readable description of the incident.

Effect -> (string)

The effect of the incident on the transit service.

EndTime -> (string)

The end time of the incident.

StartTime -> (string)

The start time of the incident.

Type -> (string)

Type of the incident.

Url -> (string)

URL to the original incident published at the agency website.

IntermediateStops -> (list)

Intermediate stops between departure and destination of the transit route.

(structure)

An intermediate stop between departure and destination of the transit route.

Attributes -> (list)

Attributes of the intermediate stop.

(string)

Departure -> (structure)

Departure details for the intermediate stop.

Delay -> (long)

The delay from the scheduled departure time.

Unit : seconds

Place -> (structure)

Place details corresponding to the departure.

Name -> (string)

The name of the place.

OriginalPosition -> (list)

Position provided in the request.

(double)

Position -> (list)

Position in World Geodetic System (WGS 84) format: [longitude, latitude].

(double)

StationDetails -> (structure)

Details about the station.

Accessibility -> (structure)

Wheelchair accessibility information for the station.

Wheelchair -> (string)

Wheelchair accessibility status.

PlatformName -> (string)

Platform name or number.

ShortName -> (string)

Short text or a number that identifies the station.

Type -> (string)

The type of the place.

WaypointIndex -> (integer)

Index of the waypoint in the request.

Status -> (string)

The status of the departure.

Time -> (string)

The departure time.

Duration -> (long)

Duration of the stop.

Unit : seconds

GeometryOffset -> (integer)

Offset in the leg geometry corresponding to the start of this stop.

Transport -> (structure)

Transport mode details at the intermediate stop.

Accessibility -> (structure)

Wheelchair accessibility information for the transit vehicle.

Wheelchair -> (string)

Wheelchair accessibility status.

Color -> (string)

Color of the transport polyline and background for the transport name.

Headsign -> (string)

Transit route headsign.

LongRouteName -> (string)

Long name of the transit route.

Mode -> (string)

Mode of the transit transport.

RouteName -> (string)

Transit route name.

ShortRouteName -> (string)

Short name of the transit route.

TextColor -> (string)

Color of the transport name text.

NextDepartures -> (list)

List of next departures that cover the same section of the route.

(structure)

Details about the next available departure for the transit service.

Delay -> (long)

The delay from the scheduled departure time.

Unit : seconds

PlatformName -> (string)

Platform name or number for the departure.

Status -> (string)

The status of the departure.

Time -> (string)

The departure time.

Transport -> (structure)

Transport mode details for this departure.

Accessibility -> (structure)

Wheelchair accessibility information for the transit vehicle.

Wheelchair -> (string)

Wheelchair accessibility status.

Color -> (string)

Color of the transport polyline and background for the transport name.

Headsign -> (string)

Transit route headsign.

LongRouteName -> (string)

Long name of the transit route.

Mode -> (string)

Mode of the transit transport.

RouteName -> (string)

Transit route name.

ShortRouteName -> (string)

Short name of the transit route.

TextColor -> (string)

Color of the transport name text.

Notices -> (list)

List of notices that indicate issues that occurred during route calculation.

(structure)

A notice that indicates an issue that occurred during route calculation.

Code -> (string)

Code corresponding to the issue.

Impact -> (string)

Impact corresponding to the issue. While Low impact notices can be safely ignored, High impact notices must be evaluated further to determine the impact.

PassThroughWaypoints -> (list)

Waypoints that were passed through during the leg. This includes the waypoints that were configured with the PassThrough option. Not populated when the TravelMode is Transit or Intermodal .

(structure)

If the waypoint should be treated as a stop. If yes, the route is split up into different legs around the stop.

GeometryOffset -> (integer)

Offset in the leg geometry corresponding to the start of this step.

Place -> (structure)

Place details corresponding to the pass-through waypoint.

OriginalPosition -> (list)

Position provided in the request.

(double)

Position -> (list)

Position in World Geodetic System (WGS 84) format: [longitude, latitude].

(double)

WaypointIndex -> (integer)

Index of the waypoint in the request.

Spans -> (list)

Spans that were computed for the requested SpanAdditionalFeatures. Not populated when the TravelMode is Transit or Intermodal .

(structure)

Span computed for the requested SpanAdditionalFeatures.

Country -> (string)

3 letter Country code corresponding to the Span.

Distance -> (long)

Distance of the computed span. This feature doesn’t split a span, but is always computed on a span split by other properties.

Unit : meters

Duration -> (long)

Duration of the computed span. This feature doesn’t split a span, but is always computed on a span split by other properties.

Unit : seconds

GeometryOffset -> (integer)

Offset in the leg geometry corresponding to the start of this span.

Names -> (list)

Names of the transit span in available languages.

(structure)

The localized string.

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

Region -> (string)

2-3 letter Region code corresponding to the Span. This is either a province or a state.

Summary -> (structure)

Summary of the transit leg.

Overview -> (structure)

Summary including duration and distance for the entire leg.

Distance -> (long)

Distance of the entire leg.

Unit : meters

Duration -> (long)

Duration of the entire leg.

Unit : seconds

TravelOnly -> (structure)

Summary including duration and distance for the travel portion of the leg only.

Duration -> (long)

Duration of the travel portion of the transit leg.

Unit : seconds

Transport -> (structure)

Transport mode details for the transit leg.

Accessibility -> (structure)

Wheelchair accessibility information for the transit vehicle.

Wheelchair -> (string)

Wheelchair accessibility status.

Color -> (string)

Color of the transport polyline and background for the transport name.

Headsign -> (string)

Transit route headsign.

LongRouteName -> (string)

Long name of the transit route.

Mode -> (string)

Mode of the transit transport.

RouteName -> (string)

Transit route name.

ShortRouteName -> (string)

Short name of the transit route.

TextColor -> (string)

Color of the transport name text.

TravelSteps -> (list)

Steps of a leg that must be performed during the travel portion of the leg.

(structure)

A step that must be performed during the travel portion of the leg.

Distance -> (long)

Distance of the step.

Unit : meters

Duration -> (long)

Duration of the step.

Unit : seconds

GeometryOffset -> (integer)

Offset in the leg geometry corresponding to the start of this step.

Instruction -> (string)

Brief description of the step in the requested language.

Type -> (string)

Type of the step.

MajorRoadLabels -> (list)

Important labels including names and route numbers that differentiate the current route from the alternatives presented.

(structure)

Important labels including names and route numbers that differentiate the current route from the alternatives presented.

RoadName -> (structure)

Name of the road (localized).

Language -> (string)

A list of BCP 47 compliant language codes for the results to be rendered in. The request uses the regional default as the fallback if the requested language can’t be provided.

Value -> (string)

The value of the localized string.

RouteNumber -> (structure)

Route number of the road.

Direction -> (string)

Directional identifier of the route.

Language -> (string)

List of languages for instructions corresponding to the route number.

Value -> (string)

The route number.

Summary -> (structure)

Summarized details of the leg.

Distance -> (long)

Distance of the route.

Duration -> (long)

Duration of the route.

Unit : seconds

Tolls -> (structure)

Toll summary for the complete route.

Total -> (structure)

Total toll summary for the complete route. Total is the only summary available today.

Currency -> (string)

Currency code corresponding to the price. This is the same as Currency specified in the request.

Estimate -> (boolean)

If the price is an estimate or an exact value.

Range -> (boolean)

If the price is a range or an exact value. If any of the toll fares making up the route is a range, the overall price is also a range.

RangeValue -> (structure)

Price range with a minimum and maximum value, if a range.

Min -> (double)

Minimum price.

Max -> (double)

Maximum price.

Value -> (double)

Exact price, if not a range.