A toolkit for working with phylogenetic data.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
utils/tools/geodesy/functions.hpp File Reference
#include "genesis/utils/tools/geodesy.hpp"
#include <iosfwd>
#include <string>

Go to the source code of this file.


 Container namespace for all symbols of genesis in order to keep them separate when used as a library.


GeoCoordinate convert_geo_coordinate (std::string const &latitude, std::string const &longitude)
 Parse strings of geographic coordinates. More...
GeoCoordinate convert_geo_coordinate (std::string const &coordinate)
 Parse a string of geographic coordinates. More...
double geo_distance (GeoCoordinate const &c1, GeoCoordinate const &c2)
 Calculate the distance (in km) between two points on Earth. More...
std::ostream & operator<< (std::ostream &os, GeoCoordinate const &coord)
std::string sanitize_geo_coordinate (std::string const &coordinate, bool two_components=true)
 Replace non-ascii symbols used in geographic coordinates by their ascii equivalents. More...


constexpr double EARTH_MEAN_RADIUS = 6371.0
 Earth is not flat! More...