Skip to content

Instantly share code, notes, and snippets.

View gilserrap's full-sized avatar

Gil Serra gilserrap

View GitHub Profile

Keybase proof

I hereby claim:

  • I am gilserrap on github.
  • I am gilserrap (https://keybase.io/gilserrap) on keybase.
  • I have a public key ASATuoVCpg4HjcEvY3v2Zi7noHn7yp6KmvgtXjOXprgrugo

To claim this, I am signing this object:

@gilserrap
gilserrap / gist:5988b982c3ae7f2ae081
Created July 9, 2014 10:28
Getting coordinates for a MKPolyline
- (void)testThis:(MKPolyline *)stepPolyline
{
//route is the MKRoute in this example
//but the polyline can be any MKPolyline
NSUInteger pointCount = stepPolyline.pointCount;
//allocate a C array to hold this many points/coordinates...
CLLocationCoordinate2D *routeCoordinates