在Google地图上绘制轨迹,如python

时间:2017-08-31 19:01:20

标签: python google-maps

我有多个csv文件,包含单个驱动程序的轨迹的纬度和经度坐标。我希望将这些轨迹绘制在单个谷歌地图上,如图像,标记起点和终点(Start1,End1和Start2,End2等)。要使用的语言是python。我在这个网站上找到了一些解决方案,但所有这些都需要注册谷歌API或涉及HTML编程。这是一个例子:

Latitude,Longitude
42.4289382,-83.4918764
42.4289354,-83.4918778
42.4289314,-83.4918781
42.4289279,-83.4918766
42.4289224,-83.4918761
42.4289178,-83.4918743
42.4289122,-83.4918721
42.4289052,-83.4918677
42.4288966,-83.4918583
42.4288875,-83.4918431
42.4288803,-83.4918213
42.4288744,-83.4917965
42.4288724,-83.4917663
42.4288749,-83.4917305
42.4288787,-83.4916908
42.4288822,-83.4916514
42.4288852,-83.4916168
42.4288879,-83.4915859
42.4288911,-83.4915549
42.4288945,-83.4915197
42.4288975,-83.4914802
42.4289024,-83.4914329
42.4289104,-83.4913779
42.4289163,-83.491319
42.4289215,-83.4912562

1 个答案:

答案 0 :(得分:1)

您可以尝试使用folium:https://github.com/python-visualization/folium

这样你就不需要google maps api和html。