1
#ifndef LOCATION_SERVICE_COM_UBUNTU_LOCATION_WGS84_LATITUDE_H_
2
#define LOCATION_SERVICE_COM_UBUNTU_LOCATION_WGS84_LATITUDE_H_
4
#include "com/ubuntu/location/units/units.h"
5
#include "com/ubuntu/location/wgs84/coordinate.h"
21
typedef Coordinate<tag::Latitude, units::PlaneAngle> Latitude;
24
struct CoordinateTraits<Latitude>
35
static void check_and_throw_if_invalid(const typename Latitude::Quantity& coordinate)
37
if (coordinate.value() < min())
38
throw std::out_of_range(u8"Latitude(coordinate.value() < min())");
39
if (coordinate.value() > max())
40
throw std::out_of_range(u8"Latitude(coordinate.value() > max())");
47
#endif // LOCATION_SERVICE_COM_UBUNTU_LOCATION_WGS84_LATITUDE_H_