PointStorageReaderInterface overrides:
| 65 | |
| 66 | // PointStorageReaderInterface overrides: |
| 67 | bool GetPoint(uint64_t id, double & lat, double & lon) const override |
| 68 | { |
| 69 | LatLon ll; |
| 70 | m_mmapReader.Read(id * sizeof(ll), &ll, sizeof(ll)); |
| 71 | |
| 72 | bool ret = FromLatLon(ll, lat, lon); |
| 73 | if (!ret) |
| 74 | LOG(LERROR, ("Node with id =", id, "not found!")); |
| 75 | return ret; |
| 76 | } |
| 77 | |
| 78 | private: |
| 79 | MmapReader m_mmapReader; |
nothing calls this directly
no test coverage detected