iossearchgeo

City search in iOS


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?


Solution

  • 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