Suppose I have two points:
var lat1 = 37.7833
var lon1 = -122.4167
var lat2 = 39.4811
var lon2 = -118.9558
How can I calculate the distance between them, the simplest way? (taking into account the curvature of the earth)
I looked into this answer, but CCLocation
doesn't have an initializer in Swift 2.0