Calculate distance using haversines formula

spherical_distance_cpp(lat1, long1, lat2, long2)

Arguments

lat1

latitude from the first location

long1

longitude from the first location

lat2

latitude from the second location

long2

longitude from the second location

Value

distance in metres between two locations