1 #ifndef GENESIS_UTILS_TOOLS_GEODESY_FUNCTIONS_H_ 2 #define GENESIS_UTILS_TOOLS_GEODESY_FUNCTIONS_H_ 135 #endif // include guard std::string sanitize_geo_coordinate(std::string const &coordinates, bool two_components)
Replace non-ascii symbols used in geographic coordinates by their ascii equivalents.
Geographical coordinates in degrees.
Container namespace for all symbols of genesis in order to keep them separate when used as a library...
std::ostream & operator<<(std::ostream &os, const Matrix< signed char > &matrix)
Template specialization for signed char, in order to print nicely.
double geo_distance(GeoCoordinate const &c1, GeoCoordinate const &c2)
Calculate the distance (in km) between two points on Earth.
GeoCoordinate convert_geo_coordinate(std::string const &latitude, std::string const &longitude)
Parse strings of geographic coordinates.
constexpr double EARTH_MEAN_RADIUS
Earth is not flat!