Hello Team,
Greetings of the Day 🙂
We are using Apple maps in our application. We have a requirment to find the nearby Airports by passing keyword "Airport" using MKLocalSearchCompleter. Which returns major airports list only, But as per reuirement we need Regional + Nearby Major Airport list.
For Example:
We are searching for Tulsa city Nearby Airports:
We are getting the below results:
Will Rogers World Airport
Max Westheimer Airport
Tulsa International Airport
Austin-Bergstrom International Airport
Dallas/Fort Worth International Airport
George Bush Intercontinental Airport
Denver International Airport
Kansas City International Airport
Dallas Love Field
McCarran International Airport
Northwest Arkansas Regional Airport
St. Louis Lambert International Airport
Wichita Dwight D. Eisenhower National Airport
Lawton-Fort Sill Regional Airport
Above airports are not coming along with Regional airport also some are very far from this place.
Please suggest me What is the best way to get the more accurate data in respect to nearby location and Regional airport too.
Also please check my mentioned code for getting Airport data:
let localSearch = MKLocalSearchCompleter()
self.localSearch.delegate = self
self.localSearch.queryFragment = "Airport"
self.localSearch.region = self.mapView.region
self.localSearch.filterType = MKSearchCompletionFilterType.locationsAndQueries;
Please let me know the best way to find the solutions.
Looking forward for your valuable response.
Regards
App Development Team