Google maps connecting markers
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have hundreds of GPS coordinates (collected by a GPS module in my car) in my database and I am loading them to google maps. Is there some way I can connect these coordinates in same way as google waypoints do (so the connecting line always stays on a road)? 回答1: You would probably want to use the Google Directions Web Service API. You would use something like PHP or Python to do a call between each of the points and then cache the directions on your server. Then serve them out as Polylines on your map. Or you could do it client side, in