Show Advisory Speed Limit by default on link presets in Canada, U.S.

Canada and the United States generally post only an advisory speed limit and avoid posting a legal speed limit on highway ramps. Other countries differ. This change splits the maxspeed field into two as a workaround for the inability to limit the default inclusion of a field to a particular location set.
This commit is contained in:
Minh Nguyễn 2021-08-07 00:05:43 -07:00
parent 8e426229e8
commit 8b60bddd17
21 changed files with 67 additions and 8 deletions

View file

@ -2,5 +2,8 @@
"key": "maxspeed",
"type": "roadspeed",
"label": "Speed Limit",
"placeholder": "40, 50, 60..."
"placeholder": "40, 50, 60...",
"locationSet": {
"exclude": ["ca", "us"]
}
}

View file

@ -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"]
}
}

View file

@ -0,0 +1,9 @@
{
"key": "maxspeed:advisory",
"type": "roadspeed",
"label": "Advisory Speed Limit",
"placeholder": "40, 50, 60...",
"locationSet": {
"exclude": ["ca", "us"]
}
}

View file

@ -0,0 +1,9 @@
{
"key": "maxspeed",
"type": "roadspeed",
"label": "Speed Limit",
"placeholder": "40, 50, 60...",
"locationSet": {
"include": ["ca", "us"]
}
}

View file

@ -2,7 +2,8 @@
"icon": "temaki-golf_cart",
"fields": [
"{golf/path}",
"maxspeed"
"maxspeed",
"maxspeed_mutcd"
],
"geometry": [
"line"

View file

@ -14,6 +14,7 @@
"dog",
"lit",
"maxspeed",
"maxspeed_mutcd",
"maxweight_bridge",
"not/name",
"smoothness",

View file

@ -4,6 +4,7 @@
"name",
"oneway",
"maxspeed",
"maxspeed_mutcd",
"lanes",
"surface",
"structure",

View file

@ -5,6 +5,7 @@
"ref_road_number",
"oneway_yes",
"maxspeed",
"maxspeed_mutcd",
"lanes",
"surface",
"structure",
@ -18,6 +19,7 @@
"lit",
"maxheight",
"maxspeed/advisory",
"maxspeed/advisory_mutcd",
"maxweight_bridge",
"minspeed",
"not/name",

View file

@ -6,7 +6,7 @@
"junction/ref_oneway",
"oneway",
"maxspeed",
"maxspeed/advisory",
"maxspeed/advisory_mutcd",
"lanes",
"surface",
"structure",
@ -20,6 +20,8 @@
"junction_line",
"lit",
"maxheight",
"maxspeed_mutcd",
"maxspeed/advisory",
"maxweight_bridge",
"name",
"ref_road_number",

View file

@ -4,6 +4,7 @@
"name",
"oneway",
"maxspeed",
"maxspeed_mutcd",
"lanes",
"surface",
"structure",
@ -20,6 +21,7 @@
"lit",
"maxheight",
"maxspeed/advisory",
"maxspeed/advisory_mutcd",
"maxweight_bridge",
"not/name",
"oneway/bicycle",

View file

@ -5,7 +5,7 @@
"destination/ref_oneway",
"oneway",
"maxspeed",
"maxspeed/advisory",
"maxspeed/advisory_mutcd",
"lanes",
"surface",
"structure",
@ -22,6 +22,8 @@
"junction/ref_oneway",
"lit",
"maxheight",
"maxspeed_mutcd",
"maxspeed/advisory",
"maxweight_bridge",
"name",
"oneway/bicycle",

View file

@ -4,6 +4,7 @@
"name",
"oneway",
"maxspeed",
"maxspeed_mutcd",
"lanes",
"surface",
"structure",
@ -18,6 +19,7 @@
"lit",
"maxheight",
"maxspeed/advisory",
"maxspeed/advisory_mutcd",
"maxweight_bridge",
"not/name",
"oneway/bicycle",

View file

@ -5,6 +5,7 @@
"service",
"oneway",
"maxspeed",
"maxspeed_mutcd",
"surface",
"structure",
"access"
@ -17,6 +18,7 @@
"lit",
"maxheight",
"maxspeed/advisory",
"maxspeed/advisory_mutcd",
"maxweight_bridge",
"oneway/bicycle",
"smoothness",

View file

@ -7,7 +7,8 @@
"fields": [
"direction",
"ref",
"maxspeed"
"maxspeed",
"maxspeed_mutcd"
],
"tags": {
"highway": "speed_camera"

View file

@ -5,6 +5,7 @@
"ref_road_number",
"oneway",
"maxspeed",
"maxspeed_mutcd",
"lanes",
"surface",
"structure",
@ -18,6 +19,7 @@
"lit",
"maxheight",
"maxspeed/advisory",
"maxspeed/advisory_mutcd",
"maxweight_bridge",
"minspeed",
"not/name",

View file

@ -15,6 +15,7 @@
"highspeed",
"incline",
"maxspeed",
"maxspeed_mutcd",
"service_rail",
"usage_rail",
"voltage_electrified"

View file

@ -13,6 +13,7 @@
"electrified",
"frequency_electrified",
"maxspeed",
"maxspeed_mutcd",
"voltage_electrified"
],
"geometry": [

View file

@ -14,6 +14,7 @@
"frequency_electrified",
"incline",
"maxspeed",
"maxspeed_mutcd",
"voltage_electrified"
],
"geometry": [

View file

@ -2,7 +2,8 @@
"icon": "maki-square-stroked",
"fields": [
"{traffic_sign}",
"maxspeed"
"maxspeed",
"maxspeed_mutcd"
],
"geometry": [
"point",

View file

@ -1,7 +1,8 @@
{
"icon": "iD-relation",
"fields": [
"maxspeed"
"maxspeed",
"maxspeed_mutcd"
],
"geometry": [
"relation"