Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current road name provider #354

Open
ianthetechie opened this issue Nov 10, 2024 · 0 comments
Open

Current road name provider #354

ianthetechie opened this issue Nov 10, 2024 · 0 comments
Labels
core Related to the Rust core UI/UX Related to the UI/UX (on any platform)

Comments

@ianthetechie
Copy link
Contributor

ianthetechie commented Nov 10, 2024

Most routing APIs attempt to reduce things to logical maneuvers. To avoid being annoying, they typically don't generate a new maneuver when a road name change happens, but the user continues "straight."

For an example, consider this road in OSM: https://www.openstreetmap.org/way/555210739

When proceeding north, nothing will indicate that the road name changed in a typical Valhalla or OSRM response.

Valhalla offers one possible solution in the trace attributes API which could be used to augment the existing information.

Another option is enabling the developer to specify a tile query for MapLibre to extract the current road name, but this seems problematic as many cases will be ambiguous.

We should come up with an interface that enables users to derive the current road name using some method besides the current method, which is necessarily limited to a (static) name per step.

This can be a trait in the core, with a default implementation provided that looks at the step road name as it does today.

Before deciding on a design, we should look at other APIs and MapLibre code to see if there are better alternatives already.

@ianthetechie ianthetechie added core Related to the Rust core UI/UX Related to the UI/UX (on any platform) labels Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to the Rust core UI/UX Related to the UI/UX (on any platform)
Projects
Status: No status
Development

No branches or pull requests

1 participant