Document Maps JavaScript API Reference Manual Routes DrivingResult

DrivingResult

DrivingResult Object(TypeObject

Attribute

Type

Description

info

string

Success Status Description

origin

LngLat

Driving Plan Start Point Coordinates

destination

LngLat

Driving Plan End Point Coordinates

start

Poi

Driving Plan Start Point

end

Poi

Driving route planning destination

waypoints

Poi

Driving route planning waypoint

taxi_cost

number

Taxi fare, returned only when extensions is 'all'. Unit: yuan

routes

Array<DriveRoute>

Driving route planning list

route

DriveRoute

Driving route planning list element

distance

number

Driving distance from start to end, unit: meter

time

number

Estimated time, unit: second

policy

string

Driving planning strategy

tolls

number

Toll amount for this driving route, unit: yuan

tolls_distance

number

Length of toll road, unit: meter

restriction

number

Traffic restriction result, 0 means the restriction has been avoided or there is no restriction, i.e., the route has no restricted sections, 1 means the restriction cannot be avoided, i.e., the route has restricted sections

steps

[DriveStepBasic | DriveStepDetail]

Sub-segment DriveStep collection