Skip to content

Commit

Permalink
Add project presets for FMR, TRP and access roads. #49
Browse files Browse the repository at this point in the history
  • Loading branch information
olafveerman committed Apr 13, 2015
1 parent b070035 commit 06c4dd8
Show file tree
Hide file tree
Showing 19 changed files with 22,201 additions and 0 deletions.
21,916 changes: 21,916 additions & 0 deletions data/data.js

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions data/presets.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
en:
presets:
categories:
category-access-road:
name: FMR access road
category-path:
name: Path
category-project:
name: Project
category-road:
name: Road
fields:
Expand Down Expand Up @@ -350,6 +354,16 @@ en:
"no": "No"
opening_hours:
label: Hours
openroads/project/cost-revision:
label: Project cost revision
openroads/project/cost:
label: Project cost
openroads/project/id:
label: Project ID
openroads/project/tour-spot:
label: Tour spot
openroads/project/work-scope:
label: Work scope
operator:
label: Operator
or_condition:
Expand Down Expand Up @@ -1516,6 +1530,18 @@ en:
office/travel_agent:
name: Travel Agency
terms: "<translate with synonyms or related terms for 'Travel Agency', separated by commas>"
openroads/access-road:
name: FMR access road
terms: "<translate with synonyms or related terms for 'FMR access road', separated by commas>"
openroads/project:
name: Project
terms: "<translate with synonyms or related terms for 'Project', separated by commas>"
openroads/project/fmr:
name: Farm to Market Road
terms: "<translate with synonyms or related terms for 'Farm to Market Road', separated by commas>"
openroads/project/trp:
name: Tourism Road Infrastructure Program
terms: "<translate with synonyms or related terms for 'Tourism Road Infrastructure Program', separated by commas>"
or-class/barangay:
name: Barangay
terms: "<translate with synonyms or related terms for 'Barangay', separated by commas>"
Expand Down
18 changes: 18 additions & 0 deletions data/presets/categories.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{
"category-access-road": {
"geometry": "relation",
"name": "FMR access road",
"icon": "relation",
"members": [
"openroads/access-road"
]
},
"category-path": {
"geometry": "line",
"name": "Path",
Expand All @@ -11,6 +19,16 @@
"highway/steps"
]
},
"category-project": {
"geometry": "relation",
"name": "Project",
"icon": "relation",
"members": [
"openroads/project/fmr",
"openroads/project/trp",
"openroads/project"
]
},
"category-road": {
"geometry": "line",
"name": "Road",
Expand Down
8 changes: 8 additions & 0 deletions data/presets/categories/access-road.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"geometry": "relation",
"name": "FMR access road",
"icon": "relation",
"members": [
"openroads/access-road"
]
}
10 changes: 10 additions & 0 deletions data/presets/categories/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"geometry": "relation",
"name": "Project",
"icon": "relation",
"members": [
"openroads/project/fmr",
"openroads/project/trp",
"openroads/project"
]
}
2 changes: 2 additions & 0 deletions data/presets/defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@
"vertex"
],
"relation": [
"category-project",
"category-access-road"
]
}
25 changes: 25 additions & 0 deletions data/presets/fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,31 @@
"type": "text",
"label": "Hours"
},
"openroads/project/cost-revision": {
"key": "openroads:project:cost-revision",
"type": "number",
"label": "Project cost revision"
},
"openroads/project/cost": {
"key": "openroads:project:cost",
"type": "number",
"label": "Project cost"
},
"openroads/project/id": {
"key": "openroads:project:id",
"type": "text",
"label": "Project ID"
},
"openroads/project/tour-spot": {
"key": "openroads:project:tour-spot",
"type": "text",
"label": "Tour spot"
},
"openroads/project/work-scope": {
"key": "openroads:project:work-scope",
"type": "text",
"label": "Work scope"
},
"operator": {
"key": "operator",
"type": "text",
Expand Down
5 changes: 5 additions & 0 deletions data/presets/fields/openroads/project/cost-revision.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"key": "openroads:project:cost-revision",
"type": "number",
"label": "Project cost revision"
}
5 changes: 5 additions & 0 deletions data/presets/fields/openroads/project/cost.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"key": "openroads:project:cost",
"type": "number",
"label": "Project cost"
}
5 changes: 5 additions & 0 deletions data/presets/fields/openroads/project/id.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"key": "openroads:project:id",
"type": "text",
"label": "Project ID"
}
5 changes: 5 additions & 0 deletions data/presets/fields/openroads/project/tour-spot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"key": "openroads:project:tour-spot",
"type": "text",
"label": "Tour spot"
}
5 changes: 5 additions & 0 deletions data/presets/fields/openroads/project/work-scope.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"key": "openroads:project:work-scope",
"type": "text",
"label": "Work scope"
}
58 changes: 58 additions & 0 deletions data/presets/presets.json
Original file line number Diff line number Diff line change
Expand Up @@ -5252,6 +5252,64 @@
"name": "Travel Agency",
"searchable": false
},
"openroads/access-road": {
"geometry": [
"relation"
],
"tags": {
"type": "access-road"
},
"name": "FMR access road",
"icon": "relation",
"fields": [
"openroads/project/id"
]
},
"openroads/project": {
"geometry": [
"relation"
],
"tags": {
"type": "project"
},
"name": "Project",
"icon": "relation",
"fields": [
"openroads/project/id"
]
},
"openroads/project/fmr": {
"geometry": [
"relation"
],
"tags": {
"type": "project",
"project": "fmr"
},
"name": "Farm to Market Road",
"icon": "relation",
"fields": [
"openroads/project/id",
"openroads/project/cost",
"openroads/project/cost-revision"
]
},
"openroads/project/trp": {
"geometry": [
"relation"
],
"tags": {
"type": "project",
"project": "trp"
},
"name": "Tourism Road Infrastructure Program",
"icon": "relation",
"fields": [
"openroads/project/id",
"openroads/project/tour-spot",
"openroads/project/work-scope"
]
},
"or-class/barangay": {
"icon": "highway-unclassified",
"fields": [
Expand Down
13 changes: 13 additions & 0 deletions data/presets/presets/openroads/access-road.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"geometry": [
"relation"
],
"tags": {
"type": "access-road"
},
"name": "FMR access road",
"icon": "relation",
"fields": [
"openroads/project/id"
]
}
13 changes: 13 additions & 0 deletions data/presets/presets/openroads/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"geometry": [
"relation"
],
"tags": {
"type": "project"
},
"name": "Project",
"icon": "relation",
"fields": [
"openroads/project/id"
]
}
17 changes: 17 additions & 0 deletions data/presets/presets/openroads/project/fmr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"geometry": [
"relation"
],
"tags": {
"type": "project",
"project": "fmr"
},
"name": "Farm to Market Road",
"icon": "relation",
"fields": [
"openroads/project/id",
"openroads/project/cost",
"openroads/project/cost-revision"
]
}

17 changes: 17 additions & 0 deletions data/presets/presets/openroads/project/trp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"geometry": [
"relation"
],
"tags": {
"type": "project",
"project": "trp"
},
"name": "Tourism Road Infrastructure Program",
"icon": "relation",
"fields": [
"openroads/project/id",
"openroads/project/tour-spot",
"openroads/project/work-scope"
]
}

16 changes: 16 additions & 0 deletions data/taginfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -1225,6 +1225,22 @@
"key": "office",
"value": "travel_agent"
},
{
"key": "type",
"value": "access-road"
},
{
"key": "type",
"value": "project"
},
{
"key": "project",
"value": "fmr"
},
{
"key": "project",
"value": "trp"
},
{
"key": "highway",
"value": "unclassified"
Expand Down
37 changes: 37 additions & 0 deletions dist/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -510,9 +510,15 @@
},
"presets": {
"categories": {
"category-access-road": {
"name": "FMR access road"
},
"category-path": {
"name": "Path"
},
"category-project": {
"name": "Project"
},
"category-road": {
"name": "Road"
}
Expand Down Expand Up @@ -985,6 +991,21 @@
"opening_hours": {
"label": "Hours"
},
"openroads/project/cost-revision": {
"label": "Project cost revision"
},
"openroads/project/cost": {
"label": "Project cost"
},
"openroads/project/id": {
"label": "Project ID"
},
"openroads/project/tour-spot": {
"label": "Tour spot"
},
"openroads/project/work-scope": {
"label": "Work scope"
},
"operator": {
"label": "Operator"
},
Expand Down Expand Up @@ -2539,6 +2560,22 @@
"name": "Travel Agency",
"terms": ""
},
"openroads/access-road": {
"name": "FMR access road",
"terms": ""
},
"openroads/project": {
"name": "Project",
"terms": ""
},
"openroads/project/fmr": {
"name": "Farm to Market Road",
"terms": ""
},
"openroads/project/trp": {
"name": "Tourism Road Infrastructure Program",
"terms": ""
},
"or-class/barangay": {
"name": "Barangay",
"terms": ""
Expand Down

0 comments on commit 06c4dd8

Please sign in to comment.