0

I'm making an app that the user can select the origin, destination, as well as midway stops (latitude and longitude) and then when pressed "show on map" I want it to open the baidu app/URL with those cordinates, i've found the following question https://stackoverflow.com/a/54542667/9674499

How ever the solution above does not include waypoints, looking at the documentation in documentation I was unable to find any evidence.

What I did was use the solution in the stackoverflow mentioned above and saved the URL and then mannually added a waypoint and compared the URL's with that the following snippet $$$$0$$$$$$1$$%20to:1$$$$12961327.76,4836562.06$$ was added to the URL

URL1:https://map.baidu.com/dir/origin/destination/@12954013.48088561,4833367.365,14.08z?querytype=nav&sn=1$$$$12952767.6,4829608.97$$origin$$$$$$&en=1$$$$12961329.83,4836584.98$$destination$$$$$$&c=1&version=4&route_traffic=1&mrs=1&da_src=shareurl URL2:https://map.baidu.com/dir/origin/destination/@12953199.23095941,4833367.365,14.08z?querytype=nav&sn=1$$$$12952766.9,4829609.45$$origin$$$$$$&en=1$$$$12951544.99,4836119.01$$$$0$$$$$$1$$%20to:1$$$$12961327.76,4836562.06$$destination$$$$$$&c=1&version=4&route_traffic=1&mrs=1&da_src=shareurl

But I can't find how it would work in a URL scheme like http://api.map.baidu.com/direction?origin=latlng:38.744591019485114,-9.143595057392032|name:origin&to=latlng:38.73789639645597,-9.143487769033158|name:via&destination=latlng:38.73789639645597,-9.143487769033158|name:destination&mode=driving&region=none&output=html&coord_type=wgs84 as it does not "save" the waypoint.

0 Answers0