开发者

Walking Directions iPhone App

开发者 https://www.devze.com 2023-04-12 11:22 出处:网络
I was given the task to write an iPhone app that gives walking direction开发者_运维知识库s. I own an Android and I know this is possible within Google Maps and Google Navigation. I am fairly new to Ma

I was given the task to write an iPhone app that gives walking direction开发者_运维知识库s. I own an Android and I know this is possible within Google Maps and Google Navigation. I am fairly new to MapKit and Google Maps API and it is unclear from what I've Googled if Apple and/or Google support this feature via an API. Can somebody please share some light on this subject?


The easiest way I know of is to call a URL from you app, which will be handled by the iPhone's Maps application. It accepts the parameters saddr and daddr. You can use the keyword "Current+Location" to use the user's current loc as a parameter:

http://maps.google.com/maps?daddr=San+Francisco,+CA&saddr=cupertino

Have a look at the Apple Docs on the subject for more info. Hope this helps =)

0

精彩评论

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

关注公众号