geo Namespace Reference

CPP API: mio::geo Namespace Reference
mio::geo Namespace Reference

Classes

class  Distance
 Represents a distance. More...
 
class  GeographicalLocation
 Class representing a geographical location on the Earth's surface. More...
 
class  RTree
 R-tree for spatial queries of geographical locations on the sphere. More...
 

Functions

constexpr Distance kilometers (ScalarType kilometers)
 Create a Distance of a specified number of kilometers. More...
 
constexpr Distance meters (ScalarType meters)
 Create a Distance of a specified number of meters. More...
 

Variables

template<class Location >
concept IsSphericalLocation
 Concept for spherical location types. More...
 

Function Documentation

◆ kilometers()

constexpr Distance mio::geo::kilometers ( ScalarType  kilometers)
inlineconstexpr

Create a Distance of a specified number of kilometers.

Parameters
[in]kilometersdistance in kilometers.

◆ meters()

constexpr Distance mio::geo::meters ( ScalarType  meters)
inlineconstexpr

Create a Distance of a specified number of meters.

Parameters
[in]metersdistance in meters.

Variable Documentation

◆ IsSphericalLocation

template<class Location >
concept mio::geo::IsSphericalLocation
Initial value:
= requires(const Location& loc) {
std::is_floating_point_v<decltype(loc.get_latitude())> && std::is_floating_point_v<decltype(loc.get_longitude())>;
}
requires(!std::is_trivial_v< T >) void BinarySerializerObject
Definition: binary_serializer.h:333

Concept for spherical location types.

The location type needs to provide get_latitude() and get_longitude() methods returning floating point types.