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
1
vote
0 answers

MKLaunchOptionsMapSpanKey & Apple MapKit

What is the correct way to auto zoom an iOS MapKit MKMapItem generated map when it first displays using the option MKLaunchOptionsMapSpanKey:? Specifically, how should the zoom factor be entered for MKLaunchOptionsMapSpanKey:??? (i.e.…
user46938
  • 59
  • 4
1
vote
1 answer

Converting latitude/longitude doubles into MKMapItems for obtaining directions

I'm working on a Core Data project and early on I discovered MKMapItems are not NSCoder compliant, so I'm storing MKMapItems' coordinates as doubles in core data and retrieving them later for generating directions to a destination. I found the…
Adrian
  • 16,233
  • 18
  • 112
  • 180
1
vote
1 answer

Storing CLLocationCoordinates in Core Data

I've encountered an issue when storing a MKMapItem that I was able to resolve by looking at compiler warnings, but I don't understand why I was able to resolve it or if I utilized "best practices". I have an Object model that stores latitude and…
Adrian
  • 16,233
  • 18
  • 112
  • 180
1
vote
2 answers

How to obtain a MKPlacemark Address for a callout

I'm trying to figure out how to get the street address for an MKPlacemark item. I print an item out in console and I can see the information's there, but I'm only getting the thoroughfare info without the street address number. Here's my code: -…
Adrian
  • 16,233
  • 18
  • 112
  • 180
1
vote
1 answer

iOS MKMapItem - how get access to all members?

I am using MapKit to do a local search which returns one or more MKMapItem objects. But there are members of the object I can see in the debugger but I can't access. The one I particularly need is UID. I have tried item.placemark, but it does not…
1
vote
3 answers

open map app slowly under didReceiveLocalNotification

I want to do a simple action, get a local notification and open apple map app. When I get the notification and then slide it, my app open first that is fine. But I need to wait about 10 seconds and the map app will be opened. why does it delay? It…
liming
  • 38
  • 1
  • 4
1
vote
1 answer

MapKit: How to retrieve apartment number from the return value of MKLocalSearchResponse

I searched thoroughly online but couldn't find any discussion about this: The MKLocalSearchResponse object returned from a MapKit search is a collection of MKMapItem, which has the information of search results, e.g. City, state, country. A single…
Ascendant
  • 2,430
  • 3
  • 26
  • 34
1
vote
1 answer

iOS maps for monotouch

I am using monotouch to create an iOS application using c# code...I'm trying to use the navigation/maps application by using this code: var addressDictionary = new NSMutableDictionary(); addressDictionary.Add(NSObject.FromObject("Name"),…
jharr100
  • 1,449
  • 24
  • 51
1
vote
1 answer

How to exit from Map App in IOS 6 i.e. return control back to app requesting directions?

I am using MKMapItem to launch Map app from within my app after the user taps 'Directions' button. The Map app comes up fine showing directions from current location to a address. But how do I go back to my app, If I no longer want to see…
Vidya Bansal
  • 231
  • 4
  • 12
1
vote
1 answer

Need assistance regarding MKMapItem

I am using this code to get current location want to use this info for sharing like whatsapp. On share location button tap I want to send latitude and longitude to other user. But its showing completely different location CLLocationManager *lm =…
S.J
  • 3,063
  • 3
  • 33
  • 66
1
vote
1 answer

Objective-C Use multiple points in Maps Direction

I'm using the new MKMapItem and all seems fine. When I use "openMapsWithItems" with that options I get the Maps App opened with the route from "plc" to "plc3" but I wanted to use all the 3 Placemarks like Start -> Point --> Destination. Is that…
Alberto Schiariti
  • 1,546
  • 2
  • 15
  • 31
0
votes
1 answer

MKMapItem Center for creating annotations

I am trying to perform an MKLocalSearch.Request() and display the result on my mapView similar to this tutorial however when I do the search the coordinates returned are off center from where they should be. Where the map displays Brooklyn as an…
0
votes
1 answer

How to convert MKMapItem to binary data to store in Core Data?

I am want to store MKMapItem that was previously found by MKLocalSearch in Core Data so I can show it to the user when the view loads in the future. What I have is I have created an Entity in xcdatamodeld file and created a binaryData attribute…
Sarang Borude
  • 329
  • 1
  • 12
0
votes
1 answer

Why is MKLocalSearch for "nearby restaurants" returning locations in different cities?

I'm building a a simple application that allows a user to save their location for later. The Goal: A user pins their address when at a business, and we save the name of the business My approach: I'm requesting the location from a locationManager.…
0
votes
1 answer

Double variable in MKMapItem array

I got a SearchBar that giving the name it print the name searched in a TableView. Before add the key searched I am checking if my Database got the variable. If my database got it I add the searched word in the TableView. My problem is that at the…
user9779811