MKCoordinateSpan in Meters?

Ian Vink picture Ian Vink · Sep 12, 2011 · Viewed 16.4k times · Source

I need to create a MKCoordinateSpan that is about 500 meters.

How do I calculate the values to pass into the MKCoordinateSpan constructor?

Answers in any programming (Obj-C, .Net) language are fine.

Answer

user467105 picture user467105 · Sep 12, 2011

Another alternative is to use MapKit's MKCoordinateRegionMakeWithDistance function:

MKCoordinateRegion rgn = MKCoordinateRegionMakeWithDistance(
    CLLocationCoordinate2DMake(someLatitude, someLongitude), 500, 500);

The MKCoordinateSpan will be in rgn.span.