Libosmium
2.20.0
Fast and flexible C++ library for working with OpenStreetMap data
|
Functions to calculate arc distance on Earth using the haversine formula. More...
Functions | |
double | distance (const osmium::geom::Coordinates &c1, const osmium::geom::Coordinates &c2) noexcept |
double | distance (const osmium::WayNodeList &wnl) |
double | distance (const osmium::NodeRefList &nrl) |
Variables | |
constexpr const double | EARTH_RADIUS_IN_METERS = 6372797.560856 |
Earth's quadratic mean radius for WGS84. More... | |
Functions to calculate arc distance on Earth using the haversine formula.
See https://en.wikipedia.org/wiki/Haversine_formula
Implementation derived from http://blog.julien.cayzac.name/2008/10/arc-and-distance-between-two-points-on.html
|
inlinenoexcept |
Calculate distance in meters between two sets of coordinates.
|
inline |
Calculate length of node list.
|
inline |
Calculate length of way.
|
constexpr |
Earth's quadratic mean radius for WGS84.