/** * Get latitude without checking the validity. */ double lat_without_check() const { return fix_to_double(m_y); }
/** * Get latitude. * * @throws invalid_location if the location is invalid */ double lat() const { if (!valid()) { throw osmium::invalid_location{"invalid location"}; } return fix_to_double(m_y); }
double lat() const { return fix_to_double(m_y); }
/** * Get longitude without checking the validity. */ double lon_without_check() const { return fix_to_double(m_x); }
double lon() const { return fix_to_double(m_x); }