문제

Is there any native city name search feature in iOS SDK?

For example, in lafourchette application - https://itunes.apple.com/fr/app/lafourchette-reservation-restaurants/id424850908?mt=8

How in this application done search feature?

(you can see it at attached gif Example of city name search)

It is use native Apple SDK for retrieving cities or some outside internet service?

도움이 되었습니까?

해결책

You can use both the iOS Maps SDK or a third-party service such as Google Maps SDK or even Foursquare API. I'm not sure which one lafourchette uses but here are some useful links to get you started:

iOS Maps SDK (CLGeocoder or MKReverseGeocoder) https://developer.apple.com/library/ios/documentation/userexperience/conceptual/LocationAwarenessPG/UsingGeocoders/UsingGeocoders.html#//apple_ref/doc/uid/TP40009497-CH4-SW2

Google Maps SDK

https://developers.google.com/maps/documentation/ios/start

Foursquare API

https://developer.foursquare.com/resources/libraries

다른 팁

The concept you are talking about is called Reverse Geocoding, and can be found in the iOS docs. There are also several third party companies like Google who do this as well.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top