Calculate the distance between two points on Earth

Calculate the physical geo distance in kilometers between places such as the end user's location and the Fastly POP they connected to.

Compute

Use this solution in your Compute service:

  1. Go
  2. JavaScript
  3. Rust

User contributed notes

BETA

Do you see an error in this page? Do you have an interesting use case, example or edge case people should know about? Share your knowledge and help people who are reading this page! (Comments are moderated; for support, please contact Fastly support)