質問

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