开发者

Opening native map application from url in iPhone, Android, Blackberry

I was trying to open the native map applica开发者_开发知识库tion to show direction from Current Location to the given location. Understandably, the url should work on all the smart phones, not just iPhone.

The most common url that can be used for all the phones can be maps.google.com.

For iPhone I have used http://maps.google.com/maps?saddr=Current%20Location&daddr=lat,lon. It works perfectly fine, iPhone opens the map with my Current Location and the destination location and draws direction. But it doesn't work on other devices.

Any suggestion ?

Thanks.


I've written a blog post addressing this topic and how open native map apps, not just the google site. Check it out here : http://habaneroconsulting.com/insights/Opening-native-map-apps-from-the-mobile-browser.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜