Get radius distance between points rather than route length

Is it possible to get the radius distance rather than the route distance? In other words, the route is the path which would be driven, whereas I’m looking for the distance “as the crow flies”. I can’t find anything about this in the docs or on this forum.

Hi @Josh_Collins,

that’s included in most geotools already. We don’t return that in our API by default.
You can either calculate it yourself using e.g. the haversine formula or import a package that does it for you in the language you are using.

You could return it with our API if you skip the segments e.g.:

  curl -X POST \
  '' \
  -H 'Content-Type: application/json; charset=utf-8' \
  -H 'Accept: application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8' \
  -H 'Authorization: your API key' \
  -d '{"coordinates":[[8.681495,49.41461],[8.686507,49.41943],[8.687872,49.420318]],"skip_segments":[1,2]}'

But not quite sure if it’s spherical distance there.

Best regards