-
Notifications
You must be signed in to change notification settings - Fork 252
migrate 48 fields to type=measurement #1988
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,15 @@ | ||
| { | ||
| "key": "aerialway:duration", | ||
| "type": "number", | ||
| "type": "measurement", | ||
| "measurement": { | ||
| "dimension": "duration", | ||
| "usage": "default", | ||
| "units": [ | ||
| "minute" | ||
| ], | ||
| "impliedUnit": "minute" | ||
| }, | ||
| "minValue": 0, | ||
| "label": "Duration (minutes)", | ||
| "label": "{duration}", | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure whether we want to remove hint are we assuming that iD and other will add it back, somehow, using
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. but then we have |
||
| "placeholder": "1, 2, 3..." | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,11 @@ | ||
| { | ||
| "key": "capacity", | ||
| "type": "number", | ||
| "type": "measurement", | ||
| "measurement": { | ||
| "dimension": "volume", | ||
| "usage": "default" | ||
| }, | ||
| "minValue": 0, | ||
| "label": "Capacity (Cubic Meters)", | ||
| "label": "Capacity", | ||
| "placeholder": "50, 100, 200..." | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,11 @@ | ||
| { | ||
| "key": "climbing:length", | ||
| "type": "number", | ||
| "type": "measurement", | ||
| "measurement": { | ||
| "dimension": "length", | ||
| "usage": "default", | ||
| "impliedUnit": "meter" | ||
| }, | ||
| "minValue": 0, | ||
| "label": "Length (Meters)" | ||
| "label": "Length" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,11 @@ | ||
| { | ||
| "key": "depth", | ||
| "minValue": 0, | ||
| "type": "number", | ||
| "label": "Depth (Meters)" | ||
| "type": "measurement", | ||
| "measurement": { | ||
| "dimension": "length", | ||
| "usage": "default", | ||
| "impliedUnit": "meter" | ||
| }, | ||
| "label": "Depth" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,14 @@ | ||
| { | ||
| "key": "distance", | ||
| "type": "text", | ||
| "type": "measurement", | ||
| "label": "Distance", | ||
| "terms": [ | ||
| "length", | ||
| "mileage" | ||
| ] | ||
| ], | ||
| "measurement": { | ||
| "dimension": "length", | ||
| "usage": "road", | ||
| "impliedUnit": "kilometer" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,11 @@ | ||
| { | ||
| "key": "dock:height", | ||
| "minValue": 0, | ||
| "type": "number", | ||
| "label": "Dock Height (Meters)" | ||
| "type": "measurement", | ||
| "measurement": { | ||
| "dimension": "length", | ||
| "usage": "default", | ||
| "impliedUnit": "meter" | ||
| }, | ||
| "label": "Dock Height" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,11 @@ | ||
| { | ||
| "key": "dock:width", | ||
| "minValue": 0, | ||
| "type": "number", | ||
| "label": "Dock Width (Meters)" | ||
| "type": "measurement", | ||
| "measurement": { | ||
| "dimension": "length", | ||
| "usage": "default", | ||
| "impliedUnit": "meter" | ||
| }, | ||
| "label": "Dock Width" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,11 @@ | ||
| { | ||
| "key": "door:height", | ||
| "minValue": 0, | ||
| "type": "number", | ||
| "label": "Door Height (Meters)" | ||
| "type": "measurement", | ||
| "measurement": { | ||
| "dimension": "length", | ||
| "usage": "default", | ||
| "impliedUnit": "meter" | ||
| }, | ||
| "label": "Door Height" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,11 @@ | ||
| { | ||
| "key": "door:width", | ||
| "minValue": 0, | ||
| "type": "number", | ||
| "label": "Door Width (Meters)" | ||
| "type": "measurement", | ||
| "measurement": { | ||
| "dimension": "length", | ||
| "usage": "default", | ||
| "impliedUnit": "meter" | ||
| }, | ||
| "label": "Door Width" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,16 @@ | ||
| { | ||
| "key": "fire_hydrant:pressure", | ||
| "type": "combo", | ||
| "label": "Pressure (bar)", | ||
| "type": "measurement", | ||
| "measurement": { | ||
| "dimension": "pressure", | ||
| "usage": "default", | ||
| "units": [ | ||
| "bar" | ||
| ], | ||
| "impliedUnit": "bar" | ||
| }, | ||
| "label": "Pressure", | ||
| "autoSuggestions": true, | ||
| "snake_case": false, | ||
| "caseSensitive": true | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,11 @@ | ||
| { | ||
| "key": "frequency", | ||
| "type": "combo", | ||
| "label": "Operating Frequency" | ||
| "type": "measurement", | ||
| "label": "Operating Frequency", | ||
| "measurement": { | ||
| "dimension": "frequency", | ||
| "usage": "default", | ||
| "impliedUnit": "hertz" | ||
| }, | ||
| "autoSuggestions": true | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,15 @@ | ||
| { | ||
| "key": "frequency", | ||
| "type": "combo", | ||
| "type": "measurement", | ||
| "label": "{frequency}", | ||
| "prerequisiteTag": { | ||
| "key": "electrified", | ||
| "valueNot": "no" | ||
| } | ||
| }, | ||
| "measurement": { | ||
| "dimension": "frequency", | ||
| "usage": "default", | ||
| "impliedUnit": "hertz" | ||
| }, | ||
| "autoSuggestions": true | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,14 @@ | ||
| { | ||
| "key": "gauge", | ||
| "type": "combo", | ||
| "label": "Gauge" | ||
| "type": "measurement", | ||
| "label": "Gauge", | ||
| "measurement": { | ||
| "dimension": "length", | ||
| "usage": "default", | ||
| "units": [ | ||
| "millimeter" | ||
| ], | ||
| "impliedUnit": "millimeter" | ||
| }, | ||
| "autoSuggestions": true | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,13 @@ | ||
| { | ||
| "key": "generator:output:electricity", | ||
| "type": "typeCombo", | ||
| "type": "measurement", | ||
| "measurement": { | ||
| "dimension": "power", | ||
| "usage": "default" | ||
| }, | ||
| "label": "Power Output", | ||
| "placeholder": "50 MW, 100 MW, 200 MW...", | ||
| "autoSuggestions": true, | ||
| "snake_case": false, | ||
| "caseSensitive": true | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,11 @@ | ||
| { | ||
| "key": "height", | ||
| "minValue": 0, | ||
| "type": "number", | ||
| "label": "Height (Meters)" | ||
| "type": "measurement", | ||
| "measurement": { | ||
| "dimension": "length", | ||
| "usage": "default", | ||
| "impliedUnit": "meter" | ||
| }, | ||
| "label": "Height" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,11 @@ | ||
| { | ||
| "key": "height:hub", | ||
| "minValue": 0, | ||
| "type": "number", | ||
| "label": "Height of Hub (Meters)" | ||
| "type": "measurement", | ||
| "measurement": { | ||
| "dimension": "length", | ||
| "usage": "default", | ||
| "impliedUnit": "meter" | ||
| }, | ||
| "label": "Height of Hub" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,11 @@ | ||
| { | ||
| "key": "length", | ||
| "type": "number", | ||
| "type": "measurement", | ||
| "measurement": { | ||
| "dimension": "length", | ||
| "usage": "default", | ||
| "impliedUnit": "meter" | ||
| }, | ||
| "minValue": 0, | ||
| "label": "Length (Meters)" | ||
| "label": "Length" | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i just learned that
railway:positionandrailway:position:exactusemi:12.3instead of12.3 mi😭and that tag uses a "fake" unit called
pkmin argentina. i guess we can't support that field