Skip to content

Commit

Permalink
Accept units in Elevation field
Browse files Browse the repository at this point in the history
The Elevation field is now of type roadheight, so that the user can explicitly specify a unit other than meters when appropriate without having to convert the quantity in their head. Technically, this is not a road height but rather a different height dimension, but it happens to be measured in the same units in both metric and customary countries.
  • Loading branch information
1ec5 committed May 10, 2024
1 parent 6de5f5f commit 22de5c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions data/fields/ele.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"key": "ele",
"type": "number",
"label": "Elevation (Meters)",
"type": "roadheight",
"label": "Elevation",
"geometry": [
"line",
"area",
Expand Down
2 changes: 1 addition & 1 deletion data/fields/ele_node.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"key": "ele",
"type": "number",
"type": "roadheight",
"label": "{ele}",
"universal": true,
"geometry": [
Expand Down
4 changes: 2 additions & 2 deletions interim/source_strings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1970,9 +1970,9 @@ en:
terms: '[translate with synonyms or related terms for ''Duration'', separated by commas]'
ele:
# ele=*
label: Elevation (Meters)
label: Elevation
# 'terms: altitude,height'
terms: '[translate with synonyms or related terms for ''Elevation (Meters)'', separated by commas]'
terms: '[translate with synonyms or related terms for ''Elevation'', separated by commas]'
ele_node:
# ele=*
# 'terms: altitude,height'
Expand Down

0 comments on commit 22de5c9

Please sign in to comment.