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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion data/fields/maxspeed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
"key": "maxspeed",
"type": "roadspeed",
"label": "Speed Limit",
"placeholder": "40, 50, 60..."
"placeholder": "40, 50, 60...",
"locationSet": {
"exclude": ["ca", "us"]
}
}
5 changes: 4 additions & 1 deletion data/fields/maxspeed/advisory.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
"key": "maxspeed:advisory",
"type": "roadspeed",
"label": "Advisory Speed Limit",
"placeholder": "40, 50, 60..."
"placeholder": "40, 50, 60...",
"locationSet": {
"include": ["ca", "us"]
}
}
9 changes: 9 additions & 0 deletions data/fields/maxspeed/advisory_mutcd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"key": "maxspeed:advisory",
"type": "roadspeed",
"label": "Advisory Speed Limit",
"placeholder": "40, 50, 60...",
"locationSet": {
"exclude": ["ca", "us"]
}
}
9 changes: 9 additions & 0 deletions data/fields/maxspeed_mutcd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"key": "maxspeed",
"type": "roadspeed",
"label": "Speed Limit",
"placeholder": "40, 50, 60...",
"locationSet": {
"include": ["ca", "us"]
}
}
3 changes: 2 additions & 1 deletion data/presets/golf/cartpath.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"icon": "temaki-golf_cart",
"fields": [
"{golf/path}",
"maxspeed"
"maxspeed",
"maxspeed_mutcd"
],
"geometry": [
"line"
Expand Down
1 change: 1 addition & 0 deletions data/presets/highway/cycleway.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"dog",
"lit",
"maxspeed",
"maxspeed_mutcd",
"maxweight_bridge",
"not/name",
"smoothness",
Expand Down
1 change: 1 addition & 0 deletions data/presets/highway/living_street.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"name",
"oneway",
"maxspeed",
"maxspeed_mutcd",
"lanes",
"surface",
"structure",
Expand Down
3 changes: 3 additions & 0 deletions data/presets/highway/motorway.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"ref_road_number",
"oneway_yes",
"maxspeed",
"maxspeed_mutcd",
"lanes",
"surface",
"structure",
Expand All @@ -17,6 +18,8 @@
"junction_line",
"lit",
"maxheight",
"maxspeed/advisory",
"maxspeed/advisory_mutcd",
"maxweight_bridge",
"minspeed",
"not/name",
Expand Down
2 changes: 2 additions & 0 deletions data/presets/highway/motorway_link.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"junction/ref_oneway",
"oneway",
"maxspeed",
"maxspeed/advisory_mutcd",
"lanes",
"surface",
"structure",
Expand All @@ -19,6 +20,7 @@
"junction_line",
"lit",
"maxheight",
"maxspeed_mutcd",
"maxspeed/advisory",
"maxweight_bridge",
"name",
Expand Down
2 changes: 2 additions & 0 deletions data/presets/highway/primary.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"name",
"oneway",
"maxspeed",
"maxspeed_mutcd",
"lanes",
"surface",
"structure",
Expand All @@ -20,6 +21,7 @@
"lit",
"maxheight",
"maxspeed/advisory",
"maxspeed/advisory_mutcd",
"maxweight_bridge",
"not/name",
"oneway/bicycle",
Expand Down
2 changes: 2 additions & 0 deletions data/presets/highway/primary_link.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"destination/ref_oneway",
"oneway",
"maxspeed",
"maxspeed/advisory_mutcd",
"lanes",
"surface",
"structure",
Expand All @@ -21,6 +22,7 @@
"junction/ref_oneway",
"lit",
"maxheight",
"maxspeed_mutcd",
"maxspeed/advisory",
"maxweight_bridge",
"name",
Expand Down
2 changes: 2 additions & 0 deletions data/presets/highway/residential.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"name",
"oneway",
"maxspeed",
"maxspeed_mutcd",
"lanes",
"surface",
"structure",
Expand All @@ -18,6 +19,7 @@
"lit",
"maxheight",
"maxspeed/advisory",
"maxspeed/advisory_mutcd",
"maxweight_bridge",
"not/name",
"oneway/bicycle",
Expand Down
2 changes: 2 additions & 0 deletions data/presets/highway/service.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"service",
"oneway",
"maxspeed",
"maxspeed_mutcd",
"surface",
"structure",
"access"
Expand All @@ -17,6 +18,7 @@
"lit",
"maxheight",
"maxspeed/advisory",
"maxspeed/advisory_mutcd",
"maxweight_bridge",
"oneway/bicycle",
"smoothness",
Expand Down
3 changes: 2 additions & 1 deletion data/presets/highway/speed_camera.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"fields": [
"direction",
"ref",
"maxspeed"
"maxspeed",
"maxspeed_mutcd"
],
"tags": {
"highway": "speed_camera"
Expand Down
3 changes: 3 additions & 0 deletions data/presets/highway/trunk.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"ref_road_number",
"oneway",
"maxspeed",
"maxspeed_mutcd",
"lanes",
"surface",
"structure",
Expand All @@ -17,6 +18,8 @@
"junction_line",
"lit",
"maxheight",
"maxspeed/advisory",
"maxspeed/advisory_mutcd",
"maxweight_bridge",
"minspeed",
"not/name",
Expand Down
1 change: 1 addition & 0 deletions data/presets/railway/construction.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"highspeed",
"incline",
"maxspeed",
"maxspeed_mutcd",
"service_rail",
"usage_rail",
"voltage_electrified"
Expand Down
1 change: 1 addition & 0 deletions data/presets/railway/funicular.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"electrified",
"frequency_electrified",
"maxspeed",
"maxspeed_mutcd",
"voltage_electrified"
],
"geometry": [
Expand Down
1 change: 1 addition & 0 deletions data/presets/railway/light_rail.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"frequency_electrified",
"incline",
"maxspeed",
"maxspeed_mutcd",
"voltage_electrified"
],
"geometry": [
Expand Down
3 changes: 2 additions & 1 deletion data/presets/traffic_sign/maxspeed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"icon": "maki-square-stroked",
"fields": [
"{traffic_sign}",
"maxspeed"
"maxspeed",
"maxspeed_mutcd"
],
"geometry": [
"point",
Expand Down
3 changes: 2 additions & 1 deletion data/presets/type/enforcement/maxspeed.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"icon": "iD-relation",
"fields": [
"maxspeed"
"maxspeed",
"maxspeed_mutcd"
],
"geometry": [
"relation"
Expand Down
12 changes: 12 additions & 0 deletions interim/source_strings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1496,6 +1496,18 @@ en:
# maxspeed/advisory field placeholder
placeholder: '40, 50, 60...'
terms: '[translate with synonyms or related terms for ''Advisory Speed Limit'', separated by commas]'
maxspeed/advisory_mutcd:
# 'maxspeed:advisory=*'
label: Advisory Speed Limit
# maxspeed/advisory_mutcd field placeholder
placeholder: '40, 50, 60...'
terms: '[translate with synonyms or related terms for ''Advisory Speed Limit'', separated by commas]'
maxspeed_mutcd:
# maxspeed=*
label: Speed Limit
# maxspeed_mutcd field placeholder
placeholder: '40, 50, 60...'
terms: '[translate with synonyms or related terms for ''Speed Limit'', separated by commas]'
maxstay:
# maxstay=*
label: Max Stay
Expand Down