powered by
as_distance(lat1, long1, lat2, long2, unit = "km", R = c(km = 6371, miles = 3959)[[unit]])
as_distance(32.8245525,-117.0951632, 40.7033127,-73.979681, unit = "km") as_distance(32.8245525,-117.0951632, 40.7033127,-73.979681, unit = "miles")
Run the code above in your browser using DataLab