Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MKLocalSearch doesn't provide the same results as search in native Apple Maps app

When I search in MKLocalSearch and Apple Maps using the same string I get different results, usually in Apple Maps I get a lot of different locations but in MKLocalSearch I get only one.

Apple Maps:

enter image description here

My app using MKLocalSearch:

enter image description here

In both cases I was searching being in Berlin and in MKLocalSearchRequest I set .region property of Berlin region

Which services does Apple use for their location search?

like image 873
Ivan Androsenko Avatar asked Apr 06 '17 08:04

Ivan Androsenko


People also ask

Why is my Apple Maps wrong?

If Apple Maps is giving you wrong directions, disable and re-enable Location Services. Then check your signal strength, and free up some space. Additionally, check your date and time settings, and then update and restart your device. If the issue persists, reinstall Maps, and report the problem to Apple.

How do I search in new Apple Maps?

Here's how it works. In the Maps app, navigate the map view to a location you want to search, then tap the search bar. Under "Find Nearby," select a category that you want to search for. In our example, we're selecting Restaurants.

Can you use Apple Maps API on Android?

Original Answer: There is no officially supported way to use Apple Maps or MapKit on any platform but except iOS and macOS.


1 Answers

After doing some searching I've investigated that MKLocalSearchCompleter is the class that Apple uses in their Map app.

like image 95
Ivan Androsenko Avatar answered Sep 20 '22 18:09

Ivan Androsenko