Google Maps Native App - Map Links

主宰稳场 提交于 2019-12-23 15:47:32

问题


I want to open the native google maps application on a mobile device from my mobile website. Currently I am using the URL http://maps.google.com/maps?q=The%20Diner,%2027%20Main%20Street,%20The%20Village%20@55.7665863,-4.1455545, which works for one location.

What I am looking to do is show multiple locations with a different coloured marker. Is this possible.


回答1:


Well i found when you use the non-secure url and post a list of postcodes it works fine you can add more postcodes by adding another +to: ;

http://maps.google.com/maps?f=d&source=embed&saddr=LD7+1EN&daddr=CH1+3AE+to:AB12+3AX&

havent really tried to make it do different markers with different colors or anything, but i suggest looking at the url generated by your browser in google maps and ensuring its not a https:/ link and i think it should work.




回答2:


Is it possible to use google static maps in place of what you have?

This page shows a static map example with multiple markers.



来源:https://stackoverflow.com/questions/5470631/google-maps-native-app-map-links

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!