开发者

Display an address on a map on the iphone

开发者 https://www.devze.com 2023-01-09 02:09 出处:网络
If I supply an address as a NSString. How can I use mapkit to show me a map with that location centered and a push pin showing that address? What\'s the easiest way to do this?

If I supply an address as a NSString. How can I use mapkit to show me a map with that location centered and a push pin showing that address? What's the easiest way to do this?

EDIT: Is there a way 开发者_如何学Pythonto call the built-in Maps app to do that for me?


You'll need to forward geocode the address to obtain GPS coordinates. This data is available from third parties like Google via their Geocoding API. Here's a tutorial on forward geocoding using Google APIs.

Take note of their terms of use.

0

精彩评论

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

关注公众号