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

Expand usage of Advisory Speed Limit field #217

Merged
merged 3 commits into from
Jan 4, 2022

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Aug 7, 2021

The Advisory Speed Limit field is now shown either by default or in More Fields for the Motorway Link, Trunk Link, Primary Link, Secondary Link, and Tertiary Link presets.

In Canada and the United States, if not elsewhere, advisory speed limits are normally posted at entrance and exit ramps but regulatory speed limit signs are rarely posted in these situations. Tagging maxspeed on a ramp could potentially lead to a more dangerous experience for users reliant on navigation UI to remind them about the most relevant speed limit. Mappers unaware of the distinction or unaware of the separate maxspeed:advisory key have been inaccurately setting maxspeed to the advisory speed limit. Presenting the normal field by default will hopefully make such errors less common.

When this point was originally raised in openstreetmap/iD#4870, it generated some controversy, which this PR attempts to sidestep by limiting the changes to places where it’s known to be correct. Unfortunately, the schema lacks an affordance for saying that a field should be under fields in some locations but moreFields in other locations. As an ugly workaround, this PR duplicates the Speed Limit and Advisory Speed Limit fields everywhere they’re used. At some point, we’ll need to come up with a real solution before we can consider other variations of speed limits, such as maxspeed:hgv, to avoid a proliferation of similar fields.

This PR also adds the Advisory Speed Limit field to the Motorway, Trunk Road, Primary Road, Secondary Road, and Tertiary Road presets, but under More Fields. Advisory speed limits are tagged on main roads in cases where road geometry requires extra care, such as around curves or hidden driveways.

Canada and the United States generally post only an advisory speed limit and avoid posting a legal speed limit on highway ramps. Other countries differ. This change splits the maxspeed field into two as a workaround for the inability to limit the default inclusion of a field to a particular location set.
Copy link
Member

@tyrasd tyrasd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, the schema lacks an affordance for saying that a field should be under fields in some locations but moreFields in other locations. As an ugly workaround, this PR duplicates the Speed Limit and Advisory Speed Limit fields everywhere they’re used.

Did you consider to instead duplicate the *_link presets themselves instead of the the maxspeed* fields? IMHO it would be a cleaner solution, since it is actually a property of the ramps that they are typically signposted differently in the US and Canada.

PS: not sure if mutcd is a universally known acronym (I had to google it 😅). Perhaps one could use _ca_us as a suffix, since that is what the locationSet setting actually uses?

@tyrasd tyrasd added enhancement New feature or request regional labels Dec 14, 2021
@1ec5
Copy link
Contributor Author

1ec5 commented Dec 16, 2021

Did you consider to instead duplicate the *_link presets themselves instead of the the maxspeed* fields?

Oh, good idea. It would still be messy but not as messy.

PS: not sure if mutcd is a universally known acronym (I had to google it 😅). Perhaps one could use _ca_us as a suffix, since that is what the locationSet setting actually uses?

I think you’re right about that being a better suffix. Variations of the MUTCD are used in some other countries too, but as far as I know, ramp advisory speed limit signs aren’t used in all of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request regional
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants