开发者

hospital search on mapkit search [closed]

开发者 https://www.devze.com 2023-03-08 17:56 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

i want to search for different hospitals near to my location and then 开发者_如何学JAVAshow them on map. But the problem is i don't know how to search for hospitals near to my location. Any help about searching the location for hospital is appreciated.


You can query GeoNames' webservices: this example searches for hospitals near London.

Beware that GeoNames' results are not foolproof, and they don't offer any guarantee on data accuracy. Do not use it for emergency situations.


Try the Google Places API


you can use mapkit MapKit Tutorial


You can also use the Google maps API to do a similar thing. Have a look at the documentation here;-

http://code.google.com/apis/maps/documentation/places/#PlaceSearches

You'll need to get an API key as well as accept the terms and conditions but as you are using MapKit, you are effectively doing this anyway. This is mentioned in Apple's documentation.

One other alternative would be to use Foursquare data as they too have an API and the data quality should be reasonably good. However, that will be another API, terms etc. to deal with and it might be more fiddly to filter your search to just hospitals.

Once you have some results and parse them, MapKit has a very straightforward API for adding the annotations to the map.

0

精彩评论

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