valhalla / valhalla/valhalla

Alternative approach to ReclassifyLinks?

Open
#2,838 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
6.2k
Forks
981
Avg merge
2d 14h
Merged PRs (30d)
14

Description

We have a situation where we'd like to know (as close as possible) the original OSM `highway=` tag for parts of a route.

One thing that prevents this is `ReclassifyLinks`, which downgrades some link classes in order to improve shortcut building.

@dnesbitt61 as you wrote that code, can you think of any other ways the same outcome could be achieved? Would it be possible to, instead of downgrading roads, flag them as `downgraded`, and make the `ShortcutBuilder` skip those edges?

I realize this would slightly modify where some edges end up in the tile heirarchy, but from what I can see, as long as the shortcuts are still constructed properly, this wouldn't have too much overall impact. As far as I can see, the reclassification doesn't affect any turn-by-turn guidance.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.