| 28 | } |
| 29 | |
| 30 | bool FromLatLon(LatLon const & ll, double & lat, double & lon) |
| 31 | { |
| 32 | // Assume that a valid coordinate is not (0, 0). |
| 33 | if (ll.m_lat != 0.0 || ll.m_lon != 0.0) |
| 34 | { |
| 35 | lat = static_cast<double>(ll.m_lat) / kValueOrder; |
| 36 | lon = static_cast<double>(ll.m_lon) / kValueOrder; |
| 37 | return true; |
| 38 | } |
| 39 | lat = 0.0; |
| 40 | lon = 0.0; |
| 41 | return false; |
| 42 | } |
| 43 | |
| 44 | template <class Index, class Container> |
| 45 | void AddToIndex(Index & index, Key relationId, Container const & values) |
no outgoing calls