Description Usage Arguments Value Examples
Get route from query Take in a original location and destination, return the direction
1 |
origin |
the original location |
destination |
the destination |
mode |
'driving'(default), 'walking', or 'transit' |
region |
the city of of original location and destination. If original and destination is not in the same city, set 'origin_region' and 'destination_region' seperately. |
origin_region |
the city of original location. If not set, use 'region' instead. |
destination_region |
the city of destination. If not set, use 'region' instead. |
tactics |
10(no expressway), 11(default, shortest time), 12(shortest path). |
coord_type |
'bd09ll'(default), 'gcj02'(which Google map and Soso map are using), 'wgs84' for GPS devices. |
a data frame contains longtitude and latitude of the route.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.