所以我有这个 python 程序,它有输入longitude latitude和destination
和是用户当前的经度和纬度, 是他们想去的地方的字符串longitude。latitudedestination
如何在 python 程序中使用 Bing Map API 生成一串方向?
它有点像这样:
longitude = -122.019943
latitude = 37.285989
destination = "1427 Alderbrook Ln San Jose CA 95129"
# Some Bings Map API Magic that generates directions in a string
print directions
Run Code Online (Sandbox Code Playgroud)
输出将是:在 East DeAnza Blvd 右转......或类似的东西
有人可以给我任何指导吗?由于 Google Maps API 不适合我,我需要使用 Bing Maps API。任何帮助将不胜感激。