开发者

Using mapkit in an iphone app

开发者 https://www.devze.com 2023-01-09 17:38 出处:网络
I would like a map inside my iphone app which I want to query with search terms depending on certain values.

I would like a map inside my iphone app which I want to query with search terms depending on certain values.

Does the mapkit framework accept queries of e.g. The United States and then display them?

I know this is really simple compared to the uses ava开发者_如何学编程ilable from mapkit, that is why I wonder if it is covered?


This answer might be useful:

How do I do geocoding (NOT reverse geocoding) on iPhone?


Currently MapKit only provides Reverse Geocoding from coordinates to an address. For forward geocoding (an address or placename to coordinates) you'll need to use a geocoding API.

If your application only has a set number of things to be searched and you know the coordinates (like countries in your example) you could store and search them in core data, sqllite etc.

0

精彩评论

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