Last active
September 5, 2024 06:36
-
-
Save freak4pc/98c813d8adb8feb8aee3a11d2da1373f to your computer and use it in GitHub Desktop.
Revisions
-
freak4pc renamed this gist
Apr 5, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
freak4pc revised this gist
Jul 8, 2018 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,11 @@ public extension MKMultiPoint { var coordinates: [CLLocationCoordinate2D] { var coords = [CLLocationCoordinate2D](repeating: kCLLocationCoordinate2DInvalid, count: pointCount) getCoordinates(&coords, range: NSRange(location: 0, length: pointCount)) return coords } } -
freak4pc created this gist
Feb 12, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ public extension MKPolyline { public var coordinates: [CLLocationCoordinate2D] { var coords = [CLLocationCoordinate2D](repeating: kCLLocationCoordinate2DInvalid, count: self.pointCount) self.getCoordinates(&coords, range: NSRange(location: 0, length: self.pointCount)) return coords } } // Given a MKRoute, you can just do: // route.polyline.coordinates