Parameter | Mandatory | Type | Description |
|---|---|---|---|
northeast | Yes | Coordinates of the northeast corner. | |
southwest | Yes | Coordinates of the southwest corner. |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
lat | Yes | double | Latitude. |
lng | Yes | double | Longitude. |
roadID | Yes | String | ID of a road. |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
steps | Yes | Step[] | Route section information. |
distance | No | double | Route distance, in meters. |
distanceText | No | String | Distance description. |
duration | No | double | Journey time, in seconds. |
durationText | No | String | Journey time description. |
durationInTraffic | No | double | Journey time calculated based on the real-time traffic condition, in seconds. |
durationInTrafficText | No | String | Description of the journey time calculated based on the real-time traffic condition. |
startLocation | Yes | Longitude and latitude of the departure place. | |
startAddress | No | String | Departure place details. |
endLocation | Yes | Longitude and latitude of the destination. | |
endAddress | No | String | Destination details. |
viaWaypoints | No | Waypoint information. |
Parameter | Mandatory | Type | Description | Value |
|---|---|---|---|---|
paths | Yes | Path[] | Planned routes. | - |
overviewPolyline | No | String | Encoded polyline of the route. | - |
optimizedWaypoints | No | int[] | Optimized waypoint index. This parameter is available only when viaType is set to false and optimize is set to true. | - |
bounds | No | Route bounds. | - | |
hasRestrictedRoad | No | int | Indicates whether the route includes private or restricted roads. |
|
dstInRestrictedArea | No | int | Indicates whether the destination is in a restricted area. | |
crossCountry | No | int | Indicates whether the route crosses a country boundary. (If yes, learn about the COVID-19 restriction policies before departure.) | |
crossMultiCountries | No | int | Indicates whether the route crosses multiple country boundaries. | |
hasRoughRoad | No | int | Indicates whether the route includes rough roads. | |
dstInDiffTimeZone | No | int | Indicates whether the time zone of the destination is different from that of the departure place. | |
hasFerry | No | int | Indicates whether the route includes ferries. | |
hasTrafficLight | No | int | Indicates whether the route has traffic lights. | |
hasTolls | No | int | Indicates whether the route includes toll gates. | |
hasStairs | No | int | Indicates whether the route has stairs. | |
trafficLightNum | No | int | Number of traffic lights. | - |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
distance | No | double | Route distance, in meters. |
distanceText | No | String | Distance description. |
duration | No | double | Journey time, in seconds. |
durationText | No | String | Journey time description. |
startLocation | No | Longitude and latitude of the departure place. | |
endLocation | No | Longitude and latitude of the destination. | |
action | No | String | Operation to be performed in the current step. The options are as follows:
|
polyline | No | A series of coordinate points on a road section (including coordinates of the departure place and destination). | |
roadName | No | String | Road name. |
orientation | No | int | Road direction. The options are as follows:
|
instruction | No | String | Text instruction. |
traffic | No | Dict[] | Traffic information. |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
distance | No | double | Route distance, in meters. |
status | No | int | Traffic status. The options are as follows:
|
polyline | No | A series of coordinate points on a road section. |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
location | Yes | Longitude and latitude of the waypoint. | |
stepIndex | Yes | int | Waypoint index in the Step array. |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
cells | Yes | Cell[] | Information about each cell in the distance matrix. |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
status | Yes | int | Result code for route calculation between the departure place and destination. For details, please refer to Result Codes. |
distance | No | double | Route distance, in meters. |
distanceText | No | String | Distance description. |
duration | No | double | Journey time, in seconds. |
durationText | No | String | Journey time description. |