Questions tagged [mkmapitem]

MKMapItem is used to represent the data about a specific point on a map.

MKMapItem is used to represent the data about a specific point on a map. It is most commonly used to represent the results of a map-related search (e.g., fetching directions or nearby points of interest) or to pass known data to the Apple Maps application for plotting and display.

For more information, please see the Apple Documentation for MKMapItem.

62 questions
0
votes
1 answer

Value of type 'MKMapItem' has no member 'website` in Swift 3

I am creating an app where I have annotation view and when you click on the annotation view it does not show the annotation view website url on the view controller DetailsView please have a look at my code and help me solve it by showing the website…
user7582407
0
votes
1 answer

MKLocalSearch produces MKMapItems with no URL

I have an app that relies on the url property of the MKMapItem class. In the past (as recently as a few months ago) I was able to do a local search for any US city and receive an MKMapItem instance which contained a URL for that location, such as a…
Yuri Brigance
  • 542
  • 4
  • 13
0
votes
1 answer

MKMapItem to TableView

I am trying to display a list of location searchs into a TableView, first of all is this possible? If so how would i go about this? My code to gather the list is: MKLocalSearchRequest *searchRequest = [[MKLocalSearchRequest alloc]…
tysco
  • 25
  • 5
0
votes
1 answer

show custom annotation in mapkit

I'm trying to show an image annotation instead of a pin annotation on the mapkit. I'm using this code: import UIKit import MapKit class ViewController2: UIViewController , MKMapViewDelegate { @IBOutlet var mapView: MKMapView! override…
0
votes
2 answers

Latitude and longitude from MKMapItem in Swift?

Using MKLocalSearchRequest() I get an array of MKMapItem. All I need is the latitude and longitude from the item. It seems like it should be easy. let search = MKLocalSearch(request: request) search.startWithCompletionHandler { (response, error) in …
George Poulos
  • 539
  • 1
  • 6
  • 17
0
votes
3 answers

Remove The Information Button Option From Map Annotation Title

PREAMBLE I have implemented a map annotation using MKMapView and MapAnnotation. When tapped a title view appears as depicted in the following image. I have used the following LOC to implement said map annotation: // VENUE 1…
arman
  • 502
  • 3
  • 15
0
votes
1 answer

Getting user's current location coordinates: MKMapItem vs CLLocationManager

This is my scenario: I need to get the user's current location punctually in order to show them a set of nearby points of interest in an MKMapView. I don't need to keep track of user's location. I need someone to clarify which the best way to do…
AppsDev
  • 12,319
  • 23
  • 93
  • 186
0
votes
1 answer

Reverse Geocode and Change the dropped pin in iOS?

What is the approach for this situation? This will be my first time to do this problem. There will be a user defined query(e.g. State, City) and then there will be a dropped pin on the query location. Then after that, user is able to move the pin…
Rence
  • 55
  • 10
0
votes
3 answers

How to get directions to a MKPointAnnotation

I have created a map that has an MKPointAnnotation which is the single point on the map (besides the users location). I am trying to work out how to amend some existing code I have to get the Driving directions to this point. This is the code that…
StuartM
  • 6,743
  • 18
  • 84
  • 160
0
votes
1 answer

apportable: iOS 7.1 is MKMapItem supported

apportable reports the following error: error: unknown type name 'MKMapItem'; did you mean 'MKMapView'? MKMapItem* destination = [[MKMapItem alloc] initWithPlacemark:placeMark]; Does Apportable support MKMapItem?
PatE
  • 3
  • 1
0
votes
1 answer

Error trying to grab coordinates from MKMapItem

Some quick background, I perform a search location search request. The code for the search request is given below: Search -(void)performSearch { // activate search inidicator [self.completingSearchIndicator startAnimating]; …
Dylan
  • 697
  • 1
  • 9
  • 27
0
votes
2 answers

Finding the smallest possible bounding region given MKMapItems

I have an array of MKMapItems and I am trying to find the coordinates I can plug into the bounding region that will make the most zoomed in map that contains all the MKMapItems Each of these map items has coordinates so with some simple calculations…
Ankush Agrawal
  • 395
  • 2
  • 14
0
votes
1 answer

UIAlertView silently crashes when button is clicked

I have a view which that has MKMapView as its subview. Since the space I have for map isn't big, I blocked all interactions with the map, like scrolling, scaling etc. Instead when user taps the map (actually he taps an invisible button placed on the…
johnyu
  • 2,152
  • 1
  • 15
  • 33
0
votes
1 answer

Xcode GeoCoding initWithCoordinate function is messing up the Thoroughfare and other 2 fields when reading back from MapItem

I wonder if anyone has seen this before, I think there is a bug in Xcode on the GeoCoding routine of (initWithCoordinate) where an address's PlaceMark (MKPlaceMark) is placed into a MapItem. Consider the code below, after I got back a GeoCoded…
Heider Sati
  • 2,476
  • 26
  • 28
0
votes
1 answer

mapView and UITable detail

trying to pass my annotation's data (name, address, phone #, url, description, etc) to a DetailViewController with a table. stuck----please read the code. the data isnt passed with calloutAccessoryTapped. Help? -…