| 27 | size_t CodeArea::GetCodeLength() const { return code_length_; } |
| 28 | |
| 29 | LatLng CodeArea::GetCenter() const { |
| 30 | const double latitude_center = std::min( |
| 31 | latitude_lo_ + (latitude_hi_ - latitude_lo_) / 2, kLatitudeMaxDegrees); |
| 32 | const double longitude_center = |
| 33 | std::min(longitude_lo_ + (longitude_hi_ - longitude_lo_) / 2, |
| 34 | kLongitudeMaxDegrees); |
| 35 | const LatLng center = {latitude_center, longitude_center}; |
| 36 | return center; |
| 37 | } |
| 38 | |
| 39 | } // namespace openlocationcode |
no outgoing calls
no test coverage detected