diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2019-05-17 10:21:00 +0300 |
---|---|---|
committer | Vlad Mihaylenko <vxmihaylenko@gmail.com> | 2019-05-21 17:22:22 +0300 |
commit | eab6ba2a0f8ede9f2ed5b8d3d7984b683c1fa335 (patch) | |
tree | c7bd0fd1fbf2e5285df4888f482728b5a2b0eeab /openlr/openlr_decoder.cpp | |
parent | b4f644e3e7c1deec7c07e505f6addcd78720923a (diff) |
Using coordinate tag for matching traffic jam to openlr segments.
Diffstat (limited to 'openlr/openlr_decoder.cpp')
-rw-r--r-- | openlr/openlr_decoder.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/openlr/openlr_decoder.cpp b/openlr/openlr_decoder.cpp index ebb1d96ddb..ffbd7cf8cf 100644 --- a/openlr/openlr_decoder.cpp +++ b/openlr/openlr_decoder.cpp @@ -401,14 +401,17 @@ public: m_dataSource, m_graph); ScoreCandidatePathsGetter pathsGetter(pointsGetter, m_graph, m_infoGetter, stat); - if (!pathsGetter.GetLineCandidatesForPoints(points, lineCandidates)) + if (!pathsGetter.GetLineCandidatesForPoints(points, segment.m_status, lineCandidates)) return false; vector<Graph::EdgeVector> resultPath; ScorePathsConnector connector(m_graph, m_infoGetter, stat); - if (!connector.FindBestPath(points, lineCandidates, resultPath)) + if (!connector.FindBestPath(points, lineCandidates, segment.m_status, resultPath)) { LOG(LINFO, ("Connections not found:", segment.m_segmentId)); + auto const mercatorPoints = segment.GetMercatorPoints(); + for (auto const & mercatorPoint : mercatorPoints) + LOG(LINFO, (MercatorBounds::ToLatLon(mercatorPoint))); return false; } |