You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Disable routing functionality or clarify it is OSM-based #506
i think if we take out the routing API in the settings.yml it should go away
We'll try that locally but then also see if we need to change anything on the website frontend -- it would be great if all links to routing disappear based on YML change, but I'll be surprised if it is that easy.
From a pure code/maintenance perspective, it would be lower overhead to just change locale labels to include a disclaimer than to go through and disable the feature, since that will involve more code variance from upstream. though overall I'd prefer to disable it until and unless we have routing over OHM data.
The acceptance criterion for this issue is to seal off the various methods for accessing the (OSM-based) directions functionality. This includes the button next to the search bar:
and the items in the context menu:
We’d also want to eliminate the /directions page altogether, or else someone could go to this URL and get a route from Santa Monica to Chicago on Route 66:
Alternatively, we could set up the routing engine in #695, but we’d still need to disable the OSM-based options in the directions pane and hook up the panel to the time slider instead.
We deployed a routing engine in #695 and OpenHistoricalMap/ohm-website#468 would integrate it into the website, mostly obviating this issue. We’d only need to keep this issue open if the sidebar continues to include the Valhalla and OSRM options.
Closing for now, due to age & also working routing functionality on OHM. If people need Valhalla or OSRM or other things, let's create a new ticket. Please reopen if this is a mistake.
Activity
danrademacher commentedon Jan 17, 2023
As I suspected, disabling the routing endpoints in YML does nothing to the website, which still offers routing as an option:

So I think we'd have to take more significant measures to
jeffreyameyer commentedon Jan 23, 2023
Is the concern that there's a feature on the site that's not working properly, or are people complaining?
I'm not too worried about this - I'd hate to see us spend too much time taking something off of the site that we might be readding / fixing later.
danrademacher commentedon Jan 23, 2023
NatFoot noted this in OSM US Slack here: https://osmus.slack.com/archives/C2J8FAS9M/p1673935989110419
Not exactly a complaint, but it does seem odd:
Could be one easy fix would simply be to check the localization settings so these say "Directions to/from here (based on OSM)"
https://github.com/OpenHistoricalMap/ohm-website/blob/staging/config/locales/en.yml#L2906-L2907
jeffreyameyer commentedon Jan 23, 2023
Aha - so is it fair to say that the issue is "OHM routing uses OSM data to plan routes"? (or something like that?)
danrademacher commentedon Jan 24, 2023
Yes, though that's a lot of words to put into a context menu.
We could add to this string:
https://github.com/OpenHistoricalMap/ohm-website/blob/staging/config/locales/en.yml#L2885
adding the bold part
[-]Disable routing functionality[/-][+]Disable routing functionality or clarify it is OSM-based[/+]danrademacher commentedon Jan 24, 2023
This came up again on OSM US Slack:
https://osmus.slack.com/archives/C2J8FAS9M/p1674555625387399
Tim reported we are working on disabling it. Richard Welty's reply:
danrademacher commentedon Jan 24, 2023
From a pure code/maintenance perspective, it would be lower overhead to just change locale labels to include a disclaimer than to go through and disable the feature, since that will involve more code variance from upstream. though overall I'd prefer to disable it until and unless we have routing over OHM data.
1ec5 commentedon Nov 9, 2025
The acceptance criterion for this issue is to seal off the various methods for accessing the (OSM-based) directions functionality. This includes the button next to the search bar:
and the items in the context menu:
We’d also want to eliminate the /directions page altogether, or else someone could go to this URL and get a route from Santa Monica to Chicago on Route 66:
Alternatively, we could set up the routing engine in #695, but we’d still need to disable the OSM-based options in the directions pane and hook up the panel to the time slider instead.
1ec5 commentedon Oct 29, 2026
We deployed a routing engine in #695 and OpenHistoricalMap/ohm-website#468 would integrate it into the website, mostly obviating this issue. We’d only need to keep this issue open if the sidebar continues to include the Valhalla and OSRM options.
jeffreyameyer commentedon Dec 3, 2026
Closing for now, due to age & also working routing functionality on OHM. If people need Valhalla or OSRM or other things, let's create a new ticket. Please reopen if this is a mistake.