Questions tagged [mklocalsearch]

MKLocalSearch helps to find nearby local points of interest.

75 questions
13
votes
3 answers

How to do a local search autocomplete as Apple's native map app does?

I have done an implementation by adopting most of the concept from Apple's sample code of the MKlocalSearch from here Currently for the auto complete, every time user is typing inside the search bar, I am sending a new request where I…
TypingPanda
  • 1,607
  • 3
  • 19
  • 32
12
votes
4 answers

iOS app getting throttled from local searches

I am implementing autocomplete (one search per new character added) in an app that searches for addresses, and I keep getting MKErrorDomain error 3, which is MKErrorLoadingThrottled. This error, according to Apple dev, occurs when The data was not…
Daniel Larsson
  • 6,278
  • 5
  • 44
  • 82
11
votes
0 answers

MKLocalSearchCompleter adding region does not skew results

I'm currently using MapKit's MKLocalSearchCompleter to provide an autocomplete-like functionality for users searching for a location in my iOS app, however I'm running into some serious issues with the results I'm getting back. To be more specific,…
Jeremy Dennen
  • 172
  • 1
  • 10
10
votes
2 answers

SwiftUI Using MapKit for Address Auto Complete

I have a form where the user enters their address. While they can always enter it manually, I also wanted to provide them with an easy solution with auto complete so that they could just start typing their address and then tap on the correct one…
kittonian
  • 1,020
  • 10
  • 22
9
votes
3 answers

Use MKLocalSearch to search for locations on a map

I want to use MKLocalSearch for searching in a Map. This functionality is available in iOS 6.1+. Does anybody know how to use this or can anybody give an example of how to use an MKLocalSearch? MKLocalSearchResponse documentation
Shehbaz Khan
  • 1,892
  • 3
  • 24
  • 31
8
votes
1 answer

Adding items into Objects

I'm looking to be able to append a personal location into the MKLocationSearchCompletion array that will can be found when the user searches through the search bar. However, I am having trouble understanding how items are stored into objects and…
Kevin
  • 1,189
  • 2
  • 17
  • 44
8
votes
1 answer

How to identify the MKMapItem from MKLocalSearchCompletion object in iOS9.3?

Apple introduced the MKLocalSearchCompleter and MKLocalSearchCompletion in iOS 9.3. I am trying to implement it. It becomes a two step process 1) enter partial term -> full search text is generated. 2) User selects one of these to search for the…
iosCurator
  • 4,356
  • 2
  • 21
  • 25
8
votes
3 answers

Objective-C - Search for streets based on user-entered query

I want to allow the users to search for a street name and have the results displayed in a UITableView. For the moment the region is not important, it can be from any region. I could not find any relevant example in my searches and I don't know if I…
CristiC
  • 22,068
  • 12
  • 57
  • 89
7
votes
1 answer

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: My app using MKLocalSearch: In both cases I was…
7
votes
1 answer

Swift - Directions to Selected Annotation from Current Location in Maps

My app currently has a local search which adds annotations for the search results. I want to set it up where when you select the annotation and click the call out button, it will open in the Maps application with directions to the annotation from…
Alec
  • 213
  • 1
  • 4
  • 13
6
votes
1 answer

MKLocalSearch produces SearchAttribution Error and Error Domain=GEOErrorDomain Code=-8

I search places with the MKLocalSearchCompleter and refine the results when the tableView cell is selected. When a MKLocalSearchCompletion is selected and MKLocalSearch.Request() is started, I get these Errors (example selects Los…
wider-spider
  • 465
  • 4
  • 12
6
votes
3 answers

MKLocalsearchRequest nearby places WITHOUT a naturalLanguageQuery string

Is it all possible to show nearby places with MKLocalSearchRequest without supplying a naturalLanguageQuery? I'm aware that the typical route is to use foursquare or google for this. I've used both.
Jordan Brown
  • 293
  • 1
  • 4
  • 16
5
votes
5 answers

MapKit Define the desired type of search results (Country, city, region, etc)

For an app i'm building, I want to implement a feature that allows users to specify the geographical origin of wines (country (e.g. France), region (e.g. Bordeaux), subregion (e.g. Paullac)). I want to make sure that I don't have to add all…
Joris416
  • 4,751
  • 5
  • 32
  • 59
4
votes
0 answers

MKLocalSearch not returning expected result

I am creating an iOS app and I have a requirement to create an appointment, similar to "Create Event" of the default Calendar app. I have to fill a location field, which will specify the location of the appointment and I am using…
raghvendra
  • 285
  • 5
  • 18
4
votes
3 answers

MKLocalSearch not finding obvious results

My code is virtually identical to the following example: https://github.com/iamamused/Example-MKLocalSearch.git Here are the important bits: @interface ViewController : UIViewController @property (strong, nonatomic) IBOutlet MKMapView…
borisz
  • 341
  • 3
  • 9
1
2 3 4 5