mapkit

iPhone Mapkit: How can I get a real business name/address from a longitude/latitude?

I'm writing an iPhone application and trying to determine how to find a business name/address from a user's current GPS location (longitude/latitude). For example, if someone if using the application from inside a Starbucks, how can I find this out from their location? Is there a way to do this using mapkit or any API/Webservice? Many Th...

Clever ways to better test GPS code using only the iPhone simulator?

I've been playing around with the iPhone SDK, using MapKit and Core Location. What are some of the tricks you can use to better test things... while still on the simulator (long before I have to try it out on my iPhone). Is there a way to use NSTimer and regularly get 'pretend' values for location, heading, speed, etc? The simulator o...

MapView Annotation Callout action when opened

Hi, I have a mapview with serveral annotations. Every annotation has a leftCalloutAccessoryView which is a UIViewController class. The reason for this is that I want every annotation to load some data from the server, and add the result of that data to the annotation subTitle. This all works perfectly, except that I dont want to load a...

Delay the call to the delegate method - mapView:regionDidChangeAnimated:

Whenever the user scrolls map or zooms in/out, this method gets called instantaneously. I want to delay the call to this method by say 2 secs. Is it possible to do that? ...

Is there a way to set a MKAnnotationViews callout to auto resize?

The problem I'm having is I'm doing reverse geocoding and the full address is getting cut off in the callout. Is there any way to set autoresizingsubviews to YES? Thanks Nick ...

iPhone locationManager:didFailWithError problem when GPS disabled

So, I've followed other related threads, but for some reason I'm still having this error and I'm about ready to tear my hair out. I have implemented locationManager:didFailWithError to check and see if a user selects 'Don't Allow' to use the current location. -(void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError...

Calculation route length

Hi, I have a map with about 80 annotations. I would like to do 3 things. 1) From my current location, I would like to know the actual route distance to that position. Not the linear distance. 2) I want to be able to show a list of all the annotations, but for every annotation (having lon/lat) I would like to know the actual route dist...

iPhone: Turning latitude/longitude into "major cross-streets"

Using the MKReverseGeocoder or GoogleAPI or MapKit... Is there a simple way to turn a latitude/longitude into "nearest major cross-streets"? A user might not have any idea where "12345 Pineapple" is located... so I want to show something like "Pineapple and Main"... or (larger, major roads) like "US-140 and Hwy 76". I don't really ca...

Is it possible to create a custom, animated MKAnnotationView?

I'm trying to simulate the user location animation in MapKit (where-by the user's position is represented by a pulsating blue dot). I've created a custom subclass of MKAnnotationView and in the drawRect method I'm attempting to cycle through a set of colors. Here's a simpler implementation of what I'm doing: - (void)drawRect:(CGRect)rec...

How do I add custom pins to the iPhone MapKit?

Hi, I'm testing out the MapKit framework on the iPhone and would really much like to switch the standard pin that displays a location to an image called "location.png". How can I modify my code to allow that? Maincontroller - (void)viewDidLoad { [super viewDidLoad]; // // Set the map center // CLLocationCoordinat...

iPhone zoom to userLocation

Hi, I need help making my iPhone app zoom to the users current location. I have seen this answered before on StackOverflow ( http://stackoverflow.com/questions/2423236/zoom-on-userlocation )but I have no idea what I am doing when it comes to iPhone development (I make websites not iPhone apps). I need it explained extremely simply, dow...

Custom Map using iPhone MapKit

I am attempting to use MapKit to create a custom map (similar to this concept http://mapwow.com/) using an image instead of the google maps image. This is so we can include the gps functionality and the pins functionality. I have looked in the documentation and there does not appear to be a standard way of doing it. Is there a way to do ...

Mapkit: Only show annotations in current view

Instead of loading all annotations that are in my array, I would only like to load the annotations that the user could currently see cased on how far they are zoomed in on the map. So, if the user pans to a place where there are annotations, those would be added, and if they pan away, those would be removed. I assume this would help wi...

Placing arrow of uipopovercontroller at annotation point on mapkit

I am trying to get a popover to appear at a map kit annotation point but cannot find a "rect" in the annotation view properties to use the rect method of calling uipopovercontroller. If given an annotation on map kit how does one find the appropriate "frame"? To give paul more information, here is my attempt: I have already used: -...

Using real location services in simulator

Is there a way to use real location services in the simulator only (no device involved)? It always goes to Cupertino. ...

showing current location ,along with another location in iphone

hellow all, whenever we load a mapview ,it automaticallay shows the current user location right. In my case i am showing another location on map ,such that the map loads the current location and zoomed to the location i have given .. but, the current location point was not showing (the blue one which comes automaticay..). i have given ma...

MapKit Annotations and User location

Hi all, I followed this tutorial to make my first app: http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/ I would really like to know how to sort the annotations in the Table in order of distance to the user (the nearest annotation is the first one on the table) How is it possible to do that? I understand that I ...

How do I take a pair of latitude,longitude floats and get the MKMapView to drop a pin and display the location?

Hi, Given a pair of floats for latitude and longitude, and a MapView, how do I get the MapView to drop a pin in the location and "zoom" the screen to display the location? I've read through some of the SO posts and they all seem to be about specific aspects of this, but I haven't been able to "put them together" in my head. Thanks ver...

iphone google maps get latitude and longitude of an address

Is there any URL from google maps, that returns me the latitude and longitude of an address. i want to use these lat and long details in iPhone Map kit to plot some information. ...

Placing blue dot in mapKit with a desired location

For demonstration purpose, i need to simulate the user location in a Mapkit view. It seems that it is possible with an undocumented API to place the blue dot anywhere on the map view. Unfortunately, i don't know witch undocumented API to use ? Any help ? ...