Skip to content

Commit

Permalink
Test out full modified copy of access fields for bicycle_road|s
Browse files Browse the repository at this point in the history
This requires to remove the "copy fields from parent" in order to remove the original `access` field
  • Loading branch information
tordans committed Apr 30, 2024
1 parent fa944f8 commit 83414d1
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 31 deletions.
66 changes: 66 additions & 0 deletions data/fields/access/access_vehicle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"keys": [
"access",
"foot",
"vehicle",
"motor_vehicle",
"bicycle"
],
"reference": {
"key": "access"
},
"type": "access",
"label": "Allowed Access",
"placeholder": "Not Specified",
"strings": {
"types": {
"access": "All",
"foot": "Foot",
"vehicle": "All Vehicles",
"motor_vehicle": "Motor Vehicles",
"bicycle": "Bicycles"
},
"options": {
"yes": {
"title": "Allowed",
"description": "Access allowed by law; a right of way"
},
"no": {
"title": "Prohibited",
"description": "Access not allowed to the general public"
},
"permissive": {
"title": "Permissive",
"description": "Access allowed until such time as the owner revokes the permission"
},
"private": {
"title": "Private",
"description": "Access allowed only with permission of the owner on an individual basis"
},
"designated": {
"title": "Designated",
"description": "Access allowed according to signs or specific local laws"
},
"destination": {
"title": "Destination",
"description": "Access allowed only to reach a destination"
},
"customers": {
"title": "Customers",
"description": "Restricted to customers at the destination"
},
"dismount": {
"title": "Dismount",
"description": "Access allowed but rider must dismount"
},
"permit": {
"title": "Permit",
"description": "Access allowed only with a valid permit or license"
},
"unknown": {
"title": "Unknown",
"description": "Access conditions are unknown or unclear"
}
}
}
}
23 changes: 0 additions & 23 deletions data/fields/access_vehicle.json

This file was deleted.

8 changes: 6 additions & 2 deletions data/presets/highway/bicycle_road/_path.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"icon": "fas-biking",
"fields": [
"{highway/path}",
"access_vehicle"
"name",
"surface",
"width",
"structure",
"access/access_vehicle",
"incline"
],
"moreFields": [
"{highway/path}"
Expand Down
9 changes: 7 additions & 2 deletions data/presets/highway/bicycle_road/_service.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{
"icon": "iD-highway-service",
"fields": [
"{highway/service}",
"access_vehicle"
"name",
"service",
"oneway",
"maxspeed",
"surface",
"structure",
"access/access_vehicle"
],
"moreFields": [
"{highway/service}"
Expand Down
10 changes: 8 additions & 2 deletions data/presets/highway/bicycle_road/cycleway.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{
"icon": "fas-biking",
"fields": [
"{highway/cycleway}",
"access_vehicle"
"name",
"oneway",
"surface",
"smoothness",
"width",
"structure",
"access/access_vehicle",
"incline"
],
"moreFields": [
"{highway/cycleway}"
Expand Down
9 changes: 7 additions & 2 deletions data/presets/highway/bicycle_road/residential.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{
"icon": "iD-highway-residential",
"fields": [
"{highway/residential}",
"access_vehicle"
"name",
"oneway",
"maxspeed",
"lanes",
"surface",
"structure",
"access/access_vehicle"
],
"moreFields": [
"{highway/residential}"
Expand Down

0 comments on commit 83414d1

Please sign in to comment.