18 #ifndef LOCATION_SERVICE_COM_UBUNTU_LOCATION_WGS84_LATITUDE_H_
19 #define LOCATION_SERVICE_COM_UBUNTU_LOCATION_WGS84_LATITUDE_H_
21 #include "com/ubuntu/location/units/units.h"
22 #include "com/ubuntu/location/wgs84/coordinate.h"
38 typedef Coordinate<tag::Latitude, units::PlaneAngle> Latitude;
52 static void check_and_throw_if_invalid(
const typename Latitude::Quantity& coordinate)
54 if (coordinate.value() < min())
55 throw std::out_of_range(u8
"Latitude(coordinate.value() < min())");
56 if (coordinate.value() > max())
57 throw std::out_of_range(u8
"Latitude(coordinate.value() > max())");
64 #endif // LOCATION_SERVICE_COM_UBUNTU_LOCATION_WGS84_LATITUDE_H_