| 236 | } |
| 237 | |
| 238 | RouteWeight IndexGraphStarter::CalcGuidesSegmentWeight(Segment const & segment, EdgeEstimator::Purpose purpose) const |
| 239 | { |
| 240 | if (purpose == EdgeEstimator::Purpose::Weight) |
| 241 | return m_guides.CalcSegmentWeight(segment); |
| 242 | |
| 243 | auto [from, to] = m_guides.GetFromTo(segment); |
| 244 | return m_graph.CalcOffroadWeight(from.GetLatLon(), to.GetLatLon(), purpose); |
| 245 | } |
| 246 | |
| 247 | RouteWeight IndexGraphStarter::CalcSegmentWeight(Segment const & segment, EdgeEstimator::Purpose purpose) const |
| 248 | { |
nothing calls this directly
no test coverage detected