Slide 12
Slide 12 text
GEOSWIFT
do {
let prague = try GeoCoordinate2D(latitude: 50.0880400, longitude: 14.4207600)
let brno = try GeoCoordinate2D(latitude: 49.195060, longitude: 16.606837)
let distancePragueBrnoInMeters = prague.distance(from: brno)
print("\(distancePragueBrnoInMeters * 0.00062137) mi.")
} catch {
// Tried to create an instance of `GeoCoordinate2D` with invalid coordinates.
}
https://github.com/petrpavlik/GeoSwift