| 30 | {} |
| 31 | |
| 32 | void RegionsSparseGraph::LoadRegionsSparseGraph() |
| 33 | { |
| 34 | MwmSet::MwmHandle mwmWorld = indexer::FindWorld(m_dataSource); |
| 35 | if (!mwmWorld.IsAlive()) |
| 36 | { |
| 37 | LOG(LWARNING, ("Couldn't open world mwm.")); |
| 38 | return; |
| 39 | } |
| 40 | |
| 41 | auto const & mwmValue = *mwmWorld.GetValue(); |
| 42 | if (!mwmValue.m_cont.IsExist(ROUTING_WORLD_FILE_TAG)) |
| 43 | { |
| 44 | LOG(LWARNING, ("Section", ROUTING_WORLD_FILE_TAG, "doesn't exist in world mwm.")); |
| 45 | return; |
| 46 | } |
| 47 | |
| 48 | ReaderSource<FilesContainerR::TReader> reader(mwmValue.m_cont.GetReader(ROUTING_WORLD_FILE_TAG)); |
| 49 | CrossBorderGraphSerializer::Deserialize(m_graph, reader, m_numMwmIds); |
| 50 | ASSERT(!m_graph.m_segments.empty(), ()); |
| 51 | } |
| 52 | |
| 53 | std::optional<FakeEnding> RegionsSparseGraph::GetFakeEnding(m2::PointD const & point) const |
| 54 | { |