Add taginfo project file descriptions
This commit is contained in:
parent
6f75dfe697
commit
05b05a958c
30 changed files with 883 additions and 8 deletions
20
Docs/TagInfo/mapcomplete_aed.json
Normal file
20
Docs/TagInfo/mapcomplete_aed.json
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete Open AED Map",
|
||||||
|
"description": "On this map, one can find and mark nearby defibrillators",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/aed",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/./assets/themes/aed/logo.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, MapComplete",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "emergency",
|
||||||
|
"description": "The MapComplete theme Open AED Map has a layer Defibrillators showing features with this tag",
|
||||||
|
"value": "defibrillator"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
20
Docs/TagInfo/mapcomplete_artworks.json
Normal file
20
Docs/TagInfo/mapcomplete_artworks.json
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete Open Artwork Map",
|
||||||
|
"description": "Welcome to Open Artwork Map, a map of statues, busts, grafittis, ",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/artworks",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/./assets/themes/artwork/artwork.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, MapComplete",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "tourism",
|
||||||
|
"description": "The MapComplete theme Open Artwork Map has a layer Artworks showing features with this tag",
|
||||||
|
"value": "artwork"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
35
Docs/TagInfo/mapcomplete_benches.json
Normal file
35
Docs/TagInfo/mapcomplete_benches.json
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete Benches",
|
||||||
|
"description": "A map of benches",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/benches",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/./assets/themes/benches/bench_poi.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, Florian Edelmann",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "amenity",
|
||||||
|
"description": "The MapComplete theme Benches has a layer Benches showing features with this tag",
|
||||||
|
"value": "bench"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "bench",
|
||||||
|
"description": "The MapComplete theme Benches has a layer Benches at public transport stops showing features with this tag",
|
||||||
|
"value": "yes"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "bench",
|
||||||
|
"description": "The MapComplete theme Benches has a layer Benches at public transport stops showing features with this tag",
|
||||||
|
"value": "stand_up_bench"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "leisure",
|
||||||
|
"description": "The MapComplete theme Benches has a layer Picnic tables showing features with this tag",
|
||||||
|
"value": "picnic_table"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
20
Docs/TagInfo/mapcomplete_bicyclelib.json
Normal file
20
Docs/TagInfo/mapcomplete_bicyclelib.json
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete Bicycle libraries",
|
||||||
|
"description": "A bicycle library is a place where bicycles can be lent, often for a small yearly fee",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/bicyclelib",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/./assets/themes/bicycle_library/logo.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, MapComplete",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "amenity",
|
||||||
|
"description": "The MapComplete theme Bicycle libraries has a layer Bicycle library showing features with this tag",
|
||||||
|
"value": "bicycle_library"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
20
Docs/TagInfo/mapcomplete_bookcases.json
Normal file
20
Docs/TagInfo/mapcomplete_bookcases.json
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete Open Bookcase Map",
|
||||||
|
"description": "A public bookcase is a small streetside cabinet, box, old phone boot or some other objects where books are stored",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/bookcases",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/./assets/themes/bookcases/bookcase.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, MapComplete",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "amenity",
|
||||||
|
"description": "The MapComplete theme Open Bookcase Map has a layer Bookcases showing features with this tag",
|
||||||
|
"value": "public_bookcase"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
25
Docs/TagInfo/mapcomplete_campersite.json
Normal file
25
Docs/TagInfo/mapcomplete_campersite.json
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete Campersites",
|
||||||
|
"description": "Find sites to spend the night with your camper",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/campersite",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/./assets/themes/campersites/caravan.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, joost schouppe",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "tourism",
|
||||||
|
"description": "The MapComplete theme Campersites has a layer Camper sites showing features with this tag",
|
||||||
|
"value": "caravan_site"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "amenity",
|
||||||
|
"description": "The MapComplete theme Campersites has a layer Sanitary dump stations showing features with this tag",
|
||||||
|
"value": "sanitary_dump_station"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
20
Docs/TagInfo/mapcomplete_charging_stations.json
Normal file
20
Docs/TagInfo/mapcomplete_charging_stations.json
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete Charging stations",
|
||||||
|
"description": "A worldwide map of charging stations",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/charging_stations",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/./assets/themes/charging_stations/logo.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, ",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "amenity",
|
||||||
|
"description": "The MapComplete theme Charging stations has a layer Charging stations showing features with this tag",
|
||||||
|
"value": "charging_station"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
83
Docs/TagInfo/mapcomplete_climbing.json
Normal file
83
Docs/TagInfo/mapcomplete_climbing.json
Normal file
|
@ -0,0 +1,83 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete Open Climbing Map",
|
||||||
|
"description": "On this map you will find various climbing opportunities such as climbing gyms, bouldering halls and rocks in nature",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/climbing",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/./assets/themes/climbing/climbing_icon.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, Christian Neumann <christian@utopicode.de>",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "club",
|
||||||
|
"description": "The MapComplete theme Open Climbing Map has a layer Climbing club showing features with this tag",
|
||||||
|
"value": "climbing"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "sport",
|
||||||
|
"description": "The MapComplete theme Open Climbing Map has a layer Climbing club showing features with this tag",
|
||||||
|
"value": "climbing"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "office",
|
||||||
|
"description": "The MapComplete theme Open Climbing Map has a layer Climbing club showing features with this tag"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "club",
|
||||||
|
"description": "The MapComplete theme Open Climbing Map has a layer Climbing club showing features with this tag"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "sport",
|
||||||
|
"description": "The MapComplete theme Open Climbing Map has a layer Climbing gyms showing features with this tag",
|
||||||
|
"value": "climbing"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "leisure",
|
||||||
|
"description": "The MapComplete theme Open Climbing Map has a layer Climbing gyms showing features with this tag",
|
||||||
|
"value": "sports_centre"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "climbing",
|
||||||
|
"description": "The MapComplete theme Open Climbing Map has a layer Climbing routes showing features with this tag",
|
||||||
|
"value": "route"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "sport",
|
||||||
|
"description": "The MapComplete theme Open Climbing Map has a layer Climbing opportunities showing features with this tag",
|
||||||
|
"value": "climbing"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "leisure",
|
||||||
|
"description": "The MapComplete theme Open Climbing Map has a layer Climbing opportunities? showing features with this tag",
|
||||||
|
"value": "sports_centre"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "barrier",
|
||||||
|
"description": "The MapComplete theme Open Climbing Map has a layer Climbing opportunities? showing features with this tag",
|
||||||
|
"value": "wall"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "barrier",
|
||||||
|
"description": "The MapComplete theme Open Climbing Map has a layer Climbing opportunities? showing features with this tag",
|
||||||
|
"value": "retaining_wall"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "natural",
|
||||||
|
"description": "The MapComplete theme Open Climbing Map has a layer Climbing opportunities? showing features with this tag",
|
||||||
|
"value": "cliff"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "natural",
|
||||||
|
"description": "The MapComplete theme Open Climbing Map has a layer Climbing opportunities? showing features with this tag",
|
||||||
|
"value": "rock"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "natural",
|
||||||
|
"description": "The MapComplete theme Open Climbing Map has a layer Climbing opportunities? showing features with this tag",
|
||||||
|
"value": "stone"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
131
Docs/TagInfo/mapcomplete_cyclofix.json
Normal file
131
Docs/TagInfo/mapcomplete_cyclofix.json
Normal file
|
@ -0,0 +1,131 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete Cyclofix - an open map for cyclists",
|
||||||
|
"description": "The goal of this map is to present cyclists with an easy-to-use solution to find the appropriate infrastructure for their needs",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/cyclofix",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/assets/themes/cyclofix/logo.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, MapComplete",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "amenity",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bike cafe showing features with this tag"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "pub",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bike cafe showing features with this tag"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "theme",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bike cafe showing features with this tag"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "shop",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bike repair/shop showing features with this tag",
|
||||||
|
"value": "bicycle"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "amenity",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bike repair/shop showing features with this tag",
|
||||||
|
"value": "bicycle_rental"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "network",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bike repair/shop showing features with this tag",
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "shop",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bike repair/shop showing features with this tag",
|
||||||
|
"value": "sports"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "sport",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bike repair/shop showing features with this tag",
|
||||||
|
"value": "bicycle"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "sport",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bike repair/shop showing features with this tag",
|
||||||
|
"value": "cycling"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "sport",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bike repair/shop showing features with this tag",
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "shop",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bike repair/shop showing features with this tag"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "amenity",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bicycle library showing features with this tag",
|
||||||
|
"value": "bicycle_library"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "amenity",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bike stations (repair, pump or both) showing features with this tag",
|
||||||
|
"value": "bicycle_repair_station"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "amenity",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bicycle tube vending machine showing features with this tag",
|
||||||
|
"value": "vending_machine"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "vending",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bicycle tube vending machine showing features with this tag"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "amenity",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Drinking water showing features with this tag",
|
||||||
|
"value": "drinking_water"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "theme",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bike related object showing features with this tag"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "sport",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bike related object showing features with this tag",
|
||||||
|
"value": "cycling"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "association",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bike related object showing features with this tag"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ngo",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bike related object showing features with this tag"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "club",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bike related object showing features with this tag"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "service:bicycle:cleaning",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bike cleaning service showing features with this tag",
|
||||||
|
"value": "yes"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "service:bicycle:cleaning",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bike cleaning service showing features with this tag",
|
||||||
|
"value": "diy"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "amenity",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bike cleaning service showing features with this tag",
|
||||||
|
"value": "bicycle_wash"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "amenity",
|
||||||
|
"description": "The MapComplete theme Cyclofix - an open map for cyclists has a layer Bike parking showing features with this tag",
|
||||||
|
"value": "bicycle_parking"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
20
Docs/TagInfo/mapcomplete_drinking_water.json
Normal file
20
Docs/TagInfo/mapcomplete_drinking_water.json
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete Drinking Water",
|
||||||
|
"description": "On this map, publicly accessible drinkging water spots are shown and can be easily added",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/drinking_water",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/./assets/themes/drinking_water/logo.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, MapComplete",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "amenity",
|
||||||
|
"description": "The MapComplete theme Drinking Water has a layer Drinking water showing features with this tag",
|
||||||
|
"value": "drinking_water"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
25
Docs/TagInfo/mapcomplete_facadegardens.json
Normal file
25
Docs/TagInfo/mapcomplete_facadegardens.json
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete Facade gardens",
|
||||||
|
"description": "This map shows facade gardens with pictures and useful info about orientation, sunshine and plant types.",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/facadegardens",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/./assets/themes/facadegardens/geveltuin.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, joost schouppe; stla",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "leisure",
|
||||||
|
"description": "The MapComplete theme Facade gardens has a layer Facade gardens showing features with this tag",
|
||||||
|
"value": "garden"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "garden:type",
|
||||||
|
"description": "The MapComplete theme Facade gardens has a layer Facade gardens showing features with this tag",
|
||||||
|
"value": "facade_garden"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
29
Docs/TagInfo/mapcomplete_fietsstraten.json
Normal file
29
Docs/TagInfo/mapcomplete_fietsstraten.json
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete Fietsstraten",
|
||||||
|
"description": "Een kaart met alle gekende fietsstraten",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/fietsstraten",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/./assets/themes/cyclestreets/F111.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, MapComplete",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "cyclestreet",
|
||||||
|
"description": "The MapComplete theme Fietsstraten has a layer Fietsstraten showing features with this tag",
|
||||||
|
"value": "yes"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "proposed:cyclestreet",
|
||||||
|
"description": "The MapComplete theme Fietsstraten has a layer Toekomstige fietsstraat showing features with this tag",
|
||||||
|
"value": "yes"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "highway",
|
||||||
|
"description": "The MapComplete theme Fietsstraten has a layer Alle straten showing features with this tag"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
19
Docs/TagInfo/mapcomplete_fritures.json
Normal file
19
Docs/TagInfo/mapcomplete_fritures.json
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete Friturenkaart",
|
||||||
|
"description": "Op deze kaart vind je je favoriete frituur!",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/fritures",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/./assets/themes/fritures/logo.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, ",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "cuisine",
|
||||||
|
"description": "The MapComplete theme Friturenkaart has a layer Frituren showing features with this tag"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
20
Docs/TagInfo/mapcomplete_ghostbikes.json
Normal file
20
Docs/TagInfo/mapcomplete_ghostbikes.json
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete Ghost bikes",
|
||||||
|
"description": "A <b>ghost bike</b> is a memorial for a cyclist who died in a traffic accident, in the form of a white bicycle placed permanently near the accident location",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/ghostbikes",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/./assets/themes/ghostbikes/logo.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, MapComplete",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "memorial",
|
||||||
|
"description": "The MapComplete theme Ghost bikes has a layer Ghost bikes showing features with this tag",
|
||||||
|
"value": "ghost_bike"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
35
Docs/TagInfo/mapcomplete_hailhydrant.json
Normal file
35
Docs/TagInfo/mapcomplete_hailhydrant.json
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete Hydrants, Extinguishers, Fire stations, and Rescue stations.",
|
||||||
|
"description": "Map to show hydrants, extinguishers, fire stations, and rescue stations.",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/hailhydrant",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/./assets/themes/hailhydrant/logo.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, ",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "emergency",
|
||||||
|
"description": "The MapComplete theme Hydrants, Extinguishers, Fire stations, and Rescue stations. has a layer Map of hydrants showing features with this tag",
|
||||||
|
"value": "fire_hydrant"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "emergency",
|
||||||
|
"description": "The MapComplete theme Hydrants, Extinguishers, Fire stations, and Rescue stations. has a layer Map of fire extinguishers. showing features with this tag",
|
||||||
|
"value": "fire_extinguisher"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "amenity",
|
||||||
|
"description": "The MapComplete theme Hydrants, Extinguishers, Fire stations, and Rescue stations. has a layer Map of fire stations showing features with this tag",
|
||||||
|
"value": "fire_station"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "amenity",
|
||||||
|
"description": "The MapComplete theme Hydrants, Extinguishers, Fire stations, and Rescue stations. has a layer Map of rescue stations showing features with this tag",
|
||||||
|
"value": "rescue_station"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
25
Docs/TagInfo/mapcomplete_maps.json
Normal file
25
Docs/TagInfo/mapcomplete_maps.json
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete A map of maps",
|
||||||
|
"description": "This theme shows all (touristic) maps that OpenStreetMap knows of",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/maps",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/./assets/themes/maps/logo.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, MapComplete",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "tourism",
|
||||||
|
"description": "The MapComplete theme A map of maps has a layer Maps showing features with this tag",
|
||||||
|
"value": "map"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "information",
|
||||||
|
"description": "The MapComplete theme A map of maps has a layer Maps showing features with this tag",
|
||||||
|
"value": "map"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
50
Docs/TagInfo/mapcomplete_nature.json
Normal file
50
Docs/TagInfo/mapcomplete_nature.json
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete De Natuur in",
|
||||||
|
"description": "Deze kaart bevat informatie voor natuurliefhebbers",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/nature",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/./assets/themes/nature/logo.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, ",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "amenity",
|
||||||
|
"description": "The MapComplete theme De Natuur in has a layer Drinking water showing features with this tag",
|
||||||
|
"value": "drinking_water"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "leisure",
|
||||||
|
"description": "The MapComplete theme De Natuur in has a layer Vogelkijkhutten showing features with this tag",
|
||||||
|
"value": "bird_hide"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "tourism",
|
||||||
|
"description": "The MapComplete theme De Natuur in has a layer Maps showing features with this tag",
|
||||||
|
"value": "map"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "information",
|
||||||
|
"description": "The MapComplete theme De Natuur in has a layer Maps showing features with this tag",
|
||||||
|
"value": "map"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "information",
|
||||||
|
"description": "The MapComplete theme De Natuur in has a layer Information boards showing features with this tag",
|
||||||
|
"value": "board"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "leisure",
|
||||||
|
"description": "The MapComplete theme De Natuur in has a layer Natuurgebied showing features with this tag",
|
||||||
|
"value": "nature_reserve"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "boundary",
|
||||||
|
"description": "The MapComplete theme De Natuur in has a layer Natuurgebied showing features with this tag",
|
||||||
|
"value": "protected_area"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
14
Docs/TagInfo/mapcomplete_personal.json
Normal file
14
Docs/TagInfo/mapcomplete_personal.json
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete Personal theme",
|
||||||
|
"description": "Create a personal theme based on all the available layers of all themes",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/personal",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/./assets/svg/addSmall.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, MapComplete",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": []
|
||||||
|
}
|
20
Docs/TagInfo/mapcomplete_playgrounds.json
Normal file
20
Docs/TagInfo/mapcomplete_playgrounds.json
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete Playgrounds",
|
||||||
|
"description": "A map with playgrounds",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/playgrounds",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/./assets/themes/playgrounds/playground.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, ",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "leisure",
|
||||||
|
"description": "The MapComplete theme Playgrounds has a layer Playgrounds showing features with this tag",
|
||||||
|
"value": "playground"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
19
Docs/TagInfo/mapcomplete_shops.json
Normal file
19
Docs/TagInfo/mapcomplete_shops.json
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete Open Shop Map",
|
||||||
|
"description": "An editable map with basic shop information",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/shops",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/./assets/themes/shops/shop.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, MapComplete",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "shop",
|
||||||
|
"description": "The MapComplete theme Open Shop Map has a layer Shop showing features with this tag"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
20
Docs/TagInfo/mapcomplete_sport_pitches.json
Normal file
20
Docs/TagInfo/mapcomplete_sport_pitches.json
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete Sportvelden",
|
||||||
|
"description": "Deze kaart toont sportvelden",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/sport_pitches",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/./assets/layers/sport_pitch/tabletennis.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, ",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "leisure",
|
||||||
|
"description": "The MapComplete theme Sportvelden has a layer Sport pitches showing features with this tag",
|
||||||
|
"value": "pitch"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
43
Docs/TagInfo/mapcomplete_surveillance.json
Normal file
43
Docs/TagInfo/mapcomplete_surveillance.json
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete Surveillance under Surveillance",
|
||||||
|
"description": "Surveillance cameras and other means of surveillance",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/surveillance",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/./assets/themes/surveillance_cameras/logo.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, ",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "camera:direction",
|
||||||
|
"description": "The MapComplete theme Surveillance under Surveillance has a layer Direction visualization showing features with this tag"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "direction",
|
||||||
|
"description": "The MapComplete theme Surveillance under Surveillance has a layer Direction visualization showing features with this tag"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "man_made",
|
||||||
|
"description": "The MapComplete theme Surveillance under Surveillance has a layer Surveillance camera's showing features with this tag",
|
||||||
|
"value": "surveillance"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "surveillance:type",
|
||||||
|
"description": "The MapComplete theme Surveillance under Surveillance has a layer Surveillance camera's showing features with this tag",
|
||||||
|
"value": "camera"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "surveillance:type",
|
||||||
|
"description": "The MapComplete theme Surveillance under Surveillance has a layer Surveillance camera's showing features with this tag",
|
||||||
|
"value": "ALPR"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "surveillance:type",
|
||||||
|
"description": "The MapComplete theme Surveillance under Surveillance has a layer Surveillance camera's showing features with this tag",
|
||||||
|
"value": "ANPR"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
20
Docs/TagInfo/mapcomplete_toilets.json
Normal file
20
Docs/TagInfo/mapcomplete_toilets.json
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete Open Toilet Map",
|
||||||
|
"description": "A map of public toilets",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/toilets",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/./assets/themes/toilets/toilets.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, MapComplete",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "amenity",
|
||||||
|
"description": "The MapComplete theme Open Toilet Map has a layer Toilets showing features with this tag",
|
||||||
|
"value": "toilets"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
20
Docs/TagInfo/mapcomplete_trees.json
Normal file
20
Docs/TagInfo/mapcomplete_trees.json
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"data_format": 1,
|
||||||
|
"data_updated": "20210319T161618Z",
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete Trees",
|
||||||
|
"description": "Map all the trees",
|
||||||
|
"project_url": "https://mapcomplete.osm.be/trees",
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/",
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/./assets/themes/trees/logo.svg",
|
||||||
|
"contact_name": "Pieter Vander Vennet, Midgard",
|
||||||
|
"contact_email": "pietervdvn@posteo.net"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "natural",
|
||||||
|
"description": "The MapComplete theme Trees has a layer Tree showing features with this tag",
|
||||||
|
"value": "tree"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -61,7 +61,11 @@ export class Or extends TagsFilter {
|
||||||
}
|
}
|
||||||
|
|
||||||
asChange(properties: any): { k: string; v: string }[] {
|
asChange(properties: any): { k: string; v: string }[] {
|
||||||
throw "Can not convert an 'or' into a changeset"
|
const result = []
|
||||||
|
for (const tagsFilter of this.or) {
|
||||||
|
result.push(...tagsFilter.asChange(properties))
|
||||||
|
}
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -80,6 +80,19 @@ export class RegexTag extends TagsFilter {
|
||||||
}
|
}
|
||||||
|
|
||||||
asChange(properties: any): { k: string; v: string }[] {
|
asChange(properties: any): { k: string; v: string }[] {
|
||||||
throw "Cannot convert a regex-tag into a change";
|
if(this.invert){
|
||||||
|
return []
|
||||||
|
}
|
||||||
|
if (typeof this.key === "string") {
|
||||||
|
if( typeof this.value === "string"){
|
||||||
|
return [{k: this.key, v: this.value}]
|
||||||
|
}
|
||||||
|
if(this.value.toString() != "/^..*$/"){
|
||||||
|
console.warn("Regex value in tag; using wildcard:", this.key, this.value)
|
||||||
|
}
|
||||||
|
return [{k: this.key, v: undefined}]
|
||||||
|
}
|
||||||
|
console.error("Cannot export regex tag to asChange; ", this.key, this.value)
|
||||||
|
return []
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -11,7 +11,7 @@ export abstract class TagsFilter {
|
||||||
abstract asHumanString(linkToWiki: boolean, shorten: boolean, properties: any);
|
abstract asHumanString(linkToWiki: boolean, shorten: boolean, properties: any);
|
||||||
|
|
||||||
abstract usedKeys(): string[];
|
abstract usedKeys(): string[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts the tagsFilter into a list of key-values that should be uploaded to OSM.
|
* Converts the tagsFilter into a list of key-values that should be uploaded to OSM.
|
||||||
* Throws an error if not applicable
|
* Throws an error if not applicable
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"de": "Freie Kunstwerk-Karte"
|
"de": "Freie Kunstwerk-Karte"
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"en": "Welcome to Open Artwork Map, a map of statues, busts, grafittis, ... all over the world",
|
"en": "Welcome to Open Artwork Map, a map of statues, busts, grafittis and other artwork all over the world",
|
||||||
"nl": "Welkom op de Open Kunstwerken Kaart",
|
"nl": "Welkom op de Open Kunstwerken Kaart",
|
||||||
"fr": "Bienvenue sur la carte ouverte des œuvres d'art, une carte des statues, fresques, ... du monde entier",
|
"fr": "Bienvenue sur la carte ouverte des œuvres d'art, une carte des statues, fresques, ... du monde entier",
|
||||||
"de": "Willkommen bei der Freien Kunstwerk-Karte, einer Karte von Statuen, Büsten, Grafitti, ... auf der ganzen Welt"
|
"de": "Willkommen bei der Freien Kunstwerk-Karte, einer Karte von Statuen, Büsten, Grafitti, ... auf der ganzen Welt"
|
||||||
|
|
|
@ -1,16 +1,20 @@
|
||||||
{
|
{
|
||||||
"id": "sport_pitches",
|
"id": "sport_pitches",
|
||||||
"title": {
|
"title": {
|
||||||
"nl": "Sportvelden"
|
"nl": "Sportvelden",
|
||||||
|
"en": "Sport pitches"
|
||||||
},
|
},
|
||||||
"shortDescription": {
|
"shortDescription": {
|
||||||
"nl": "Deze kaart toont sportvelden"
|
"nl": "Deze kaart toont sportvelden",
|
||||||
|
"en": "A map showing sport pitches"
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"nl": "Een sportveld is een ingerichte plaats met infrastructuur om een sport te beoefenen"
|
"nl": "Een sportveld is een ingerichte plaats met infrastructuur om een sport te beoefenen",
|
||||||
|
"en": "A sport pitch is an area where sports are played"
|
||||||
},
|
},
|
||||||
"language": [
|
"language": [
|
||||||
"nl"
|
"nl",
|
||||||
|
"en"
|
||||||
],
|
],
|
||||||
"maintainer": "",
|
"maintainer": "",
|
||||||
"icon": "./assets/layers/sport_pitch/tabletennis.svg",
|
"icon": "./assets/layers/sport_pitch/tabletennis.svg",
|
||||||
|
|
101
scripts/generateTaginfoProjectFiles.ts
Normal file
101
scripts/generateTaginfoProjectFiles.ts
Normal file
|
@ -0,0 +1,101 @@
|
||||||
|
import {Utils} from "../Utils";
|
||||||
|
|
||||||
|
Utils.runningFromConsole = true;
|
||||||
|
import {AllKnownLayouts} from "../Customizations/AllKnownLayouts";
|
||||||
|
import LayoutConfig from "../Customizations/JSON/LayoutConfig";
|
||||||
|
import {TagsFilter} from "../Logic/Tags/TagsFilter";
|
||||||
|
import LanguagePicker from "../UI/LanguagePicker";
|
||||||
|
import Locale from "../UI/i18n/Locale";
|
||||||
|
import {Layer} from "leaflet";
|
||||||
|
import LayerConfig from "../Customizations/JSON/LayerConfig";
|
||||||
|
import {Translation} from "../UI/i18n/Translation";
|
||||||
|
import {readFileSync, writeFile, writeFileSync} from "fs";
|
||||||
|
|
||||||
|
const outputDirectory = "Docs/TagInfo"
|
||||||
|
|
||||||
|
function generateLayerUsage(layer: LayerConfig, layout: LayoutConfig): any [] {
|
||||||
|
const usedTags = layer.source.osmTags.asChange({})
|
||||||
|
const result = []
|
||||||
|
for (const kv of usedTags) {
|
||||||
|
const overview = {
|
||||||
|
// OSM tag key (required)
|
||||||
|
key: kv.k,
|
||||||
|
description: "The MapComplete theme " + layout.title.txt + " has a layer " + layer.name.txt + " showing features with this tag"
|
||||||
|
};
|
||||||
|
if (kv.v !== undefined) {
|
||||||
|
// OSM tag value (optional, if not supplied it means "all values")
|
||||||
|
overview["value"] = kv.v
|
||||||
|
}
|
||||||
|
result.push(overview)
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generates the JSON-object representing the theme for inclusion on taginfo
|
||||||
|
* @param layout
|
||||||
|
*/
|
||||||
|
function generateTagInfoEntry(layout: LayoutConfig): any {
|
||||||
|
const usedTags = []
|
||||||
|
for (const layer of layout.layers) {
|
||||||
|
usedTags.push(...generateLayerUsage(layer, layout))
|
||||||
|
}
|
||||||
|
|
||||||
|
const t = new Date();
|
||||||
|
const generationTime = t.getUTCFullYear() + Utils.TwoDigits(t.getUTCMonth()) + Utils.TwoDigits(t.getUTCDate()) + "T" + Utils.TwoDigits(t.getUTCHours()) + Utils.TwoDigits(t.getUTCMinutes()) + Utils.TwoDigits(t.getSeconds()) + "Z"
|
||||||
|
|
||||||
|
let icon = layout.icon;
|
||||||
|
if (icon.startsWith("./")) {
|
||||||
|
icon = icon.substring(2)
|
||||||
|
}
|
||||||
|
|
||||||
|
const themeInfo = {
|
||||||
|
// data format version, currently always 1, will get updated if there are incompatible changes to the format (required)
|
||||||
|
"data_format": 1,
|
||||||
|
|
||||||
|
// "data_url": "...", # this should be the URL under which this project file can be accessed (optional)
|
||||||
|
// timestamp when project file was updated (optional, will use HTTP header date if not available)
|
||||||
|
"data_updated": generationTime,
|
||||||
|
"project": {
|
||||||
|
"name": "MapComplete " + layout.title.txt, // name of the project (required)
|
||||||
|
"description": layout.shortDescription.txt, // short description of the project (required)
|
||||||
|
"project_url": "https://mapcomplete.osm.be/" + layout.id, // home page of the project with general information (required)
|
||||||
|
"doc_url": "https://github.com/pietervdvn/MapComplete/tree/master/assets/themes/", // documentation of the project and especially the tags used (optional)
|
||||||
|
"icon_url": "https://mapcomplete.osm.be/" + layout.icon, // project logo, should work in 16x16 pixels on white and light gray backgrounds (optional)
|
||||||
|
"contact_name": "Pieter Vander Vennet, " + layout.maintainer, // contact name, needed for taginfo maintainer (required)
|
||||||
|
"contact_email": "pietervdvn@posteo.net" // contact email, needed for taginfo maintainer (required)
|
||||||
|
},
|
||||||
|
tags: usedTags
|
||||||
|
}
|
||||||
|
|
||||||
|
const filename = "mapcomplete_" + layout.id
|
||||||
|
console.log("Writing info about " + layout.id)
|
||||||
|
writeFileSync(`${outputDirectory}/${filename}.json`, JSON.stringify(themeInfo, null, " "))
|
||||||
|
return filename
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
console.log("Creating taginfo project files")
|
||||||
|
|
||||||
|
Locale.language.setData("en")
|
||||||
|
Translation.forcedLanguage = "en"
|
||||||
|
|
||||||
|
const files = []
|
||||||
|
|
||||||
|
for (const layout of AllKnownLayouts.layoutsList) {
|
||||||
|
if (layout.hideFromOverview) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
files.push(generateTagInfoEntry(layout));
|
||||||
|
}
|
||||||
|
|
||||||
|
const tagInfoList = "../taginfo-projects/project_list.txt"
|
||||||
|
let projectList = readFileSync(tagInfoList, "UTF8")
|
||||||
|
.split("\n")
|
||||||
|
.filter(entry => entry.indexOf("mapcomplete_") < 0)
|
||||||
|
.concat(files.map(f => `${f} https://raw.githubusercontent.com/pietervdvn/MapComplete/master/Docs/TagInfo/${f}.json`))
|
||||||
|
.sort()
|
||||||
|
.filter(entry => entry != "")
|
||||||
|
|
||||||
|
console.log("Writing taginfo project filelist")
|
||||||
|
writeFileSync(tagInfoList, projectList.join("\n")+"\n")
|
Loading…
Reference in a new issue