Location of geographical names in the drop-down list

My application It is necessary to combine the names of search locations using a text field. Does the Map set have any method for implementing this kind of function? This image below shows what I definitely need

enter image description here

+3
source share
1 answer

No , there is no MapKit method to implement this type of property.

To do this, you need to implement your own code, i.e. Use the UISearchbarCantroller or Simple UISearchbar.

You can use Google Place AutoFill in the search results.

You can use this GooglePlacesAutocomplete Example .

On iOS> = 6.1 provides MKLocalSearch , MKLocalSearchRequest for searching natural language attractions. Example

MKLocalSearchRequest *request = [[MKLocalSearchRequest alloc] init]; request.region = regionToSearchIn; request.naturalLanguageQuery = @"restaurants"; // or business name MKLocalSearch *localSearch = [[MKLocalSearch alloc] initWithRequest:request]; [localSearch startWithCompletionHandler:^(MKLocalSearchResponse *response, NSError *error) { // do something with the results / error }]; 
+6
source

All Articles