Description Usage Arguments Details Value Examples
Get route from query Take in a original location and destination, return the direction
1 2 |
origin |
the original location |
destination |
the destination |
mode |
'driving'(default), 'walking', or 'transit','bicycling','truck'. |
city |
the city of of original location and destination. |
strategy |
integer from 0 to 20 for path selecting, default 9 for driving mode. |
size |
for truck mode. |
Go to https://lbs.amap.com/api/webservice/guide/api/direction to read more.
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.