Add road vehicle height restriction units #30
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.
Added a new feature property to indicate the unit of length posted on vehicle height restrictions. This information will allow iD’s Maximum Height field order to default to the locally appropriate unit: openstreetmap/iD#3614.
According to CLDR, Canada, India, the United Kingdom, and the United States use feet and inches for human-scale height measurements, while only the United Kingdom and United States measure road distances in miles instead of meters. That would imply that the U.K. and U.S. alone would measure vehicle height restrictions in feet and inches. However, not all U.S. overseas dependencies measure height in feet and inches (Puerto Rico being a notable exception), and various British overseas territories are represented separately in this JSON file. I did my best to figure out the height units in each territory based on this Wikipedia article, but it’s entirely possible that I under- or overcorrected.
This PR also corrects the road speed unit in some regions: Akrotiri and Dhekelia apparently uses the same signs as the Republic of Cyprus, which expresses speed limits in kilometers per hour. Some additional British overseas territories (Anguilla, South Georgia and South Sandwich Islands, and Montserrat) use imperial units, according to this table.