A library for working with phylogenetic and population genetic data.
v0.27.0
utils/tools/geodesy/functions.hpp File Reference
#include "genesis/utils/tools/geodesy/geo_coordinate.hpp"
#include <iosfwd>
#include <string>

Go to the source code of this file.

Namespaces

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

Functions

GeoCoordinate convert_geo_coordinate (std::string const &coordinate)
 Parse a string of geographic coordinates. More...
 
GeoCoordinate convert_geo_coordinate (std::string const &latitude, std::string const &longitude)
 Parse strings 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...
 

Variables

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