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