Expand usage of Advisory Speed Limit field #217
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 separatemaxspeed:advisory
key have been inaccurately settingmaxspeed
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 butmoreFields
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 asmaxspeed: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.