Geospatial Web Developer
Home
Mapplets
About
Contact
MAGIST @ UCLA
Data Science
Distance Calculator
This example uses
Turf.js
to calculate the geodesic distance between two locations. We'll use an
OpenLayers
map to display the result as a
greatCircle
line between the two points.
Starting Latitude
Starting Longitude
Ending Latitude
Ending Longitude
Distance Units
Miles
Kilometers
Calculate