Skip to content

Instantly share code, notes, and snippets.

View TheBigSasha's full-sized avatar
🐤

Sasha Aleshchenko TheBigSasha

🐤
View GitHub Profile
@freak4pc
freak4pc / MKMultiPoint+Ext.swift
Last active July 16, 2024 09:10
Get a list of coordinates from a MKPolyline / MKRoute
public extension MKMultiPoint {
var coordinates: [CLLocationCoordinate2D] {
var coords = [CLLocationCoordinate2D](repeating: kCLLocationCoordinate2DInvalid,
count: pointCount)
getCoordinates(&coords, range: NSRange(location: 0, length: pointCount))
return coords
}
}