GetDirections
Calculates directions between locations.
Input
| Name | Type | Description |
| Origin | String |
The address or textual latitude/longitude value from which you wish to calculate directions. |
| Destination | String |
The address or textual latitude/longitude value from which you wish to calculate directions. |
| Mode | String |
specifies what mode of transport to use when calculating directions. Available values are Driving, Wakling, and Bicycling. The allowed values are Driving, Walking, Bicycling. |
| Waypoints | String |
Waypoints alter a route by routing it through the specified location(s). A waypoint is specified as either a latitude/longitude coordinate or as an address which will be geocoded. e.g. Barossa Valley,SA|Clare,SA|Connawarra,SA|McLaren Vale |
| Waypoints_Optimize | String |
If set to true, allow the Directions service to optimize the provided route by rearranging the waypoints in a more efficient order. The allowed values are true, false. |
| Alternatives | String |
If set to true, specifies that the Directions service may provide more than one route alternative in the response. The allowed values are true, false. |
| Avoid | String |
Indicates that the calculated route(s) should avoid the indicated features: tolls - indicates that the calculated route should avoid toll roads/bridges; highways - indicates that the calculated route should avoid highways. The allowed values are tolls, highways. |
| Units | String |
Specifies what unit system to use when displaying results. Available values are metric, and imperial. The allowed values are metric, imperial. |
| Region | String |
The region code, specified as a ccTLD ('top-level domain') two-character value. |
| Language | String |
The language in which to return results. |
Output
| Name | Type | Description |
| gglDuration | String | The total duration of this leg. |
| gglDistance | String | The total distance covered by this leg. |
| gglStart_Location | String | Contains the latitude/longitude coordinates of the origin of this leg. |
| gglEnd_Location | String | contains the latitude/longitude coordinates of the given destination of this leg. |
| gglStart_Address | String | Contains the human-readable address (typically a street address) reflecting the start_location of this leg. |
| gglEnd_Address | String | Contains the human-readable address (typically a street address) reflecting the end_location of this leg. |
| gglTravel_Mode | String | Mode of transport to use when calculating directions. |
| gglSteps_Html_Instructions | String | Semicolon separated list of instructions. Contains formatted instructions for this step, presented as an HTML text string. |
| gglSteps_Distance | String | Semicolon separated list of distances. Contains the distance covered by this step until the next step. |
| gglSteps_Duration | String | Semicolon separated list of durations. Contains the typical time required to perform the step, until the next step. |
| gglSteps_Start_Location | String | Semicolon separated list of start locations. Contains the location of the starting point of this step, as a single set of lat and lng fields. |
| gglSteps_End_Location | String | Semicolon separated list of end locations. Contains the location of the starting point of this step, as a single set of lat and lng fields. |
| ggl* | String | Values of the cells within the specified range. Names of the output parameters will be the columns (i.e. a,b,c...aa,ab,ab...). |