This is an internal utility function to convert bounding boxes into coordinate pairs.
calc_haversine_distance(point_1, point_2, coord_units = "degrees")
Coordinate pairs (as length-2 numeric vectors with the names "lat" and "lng") to calculate distance between.
String indicating whether coordinates are in degrees ('"degrees"') or radians ('"radians"') Degrees stored in radians will be converted to degrees.
A vector of length 1 containing distance between points
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.