forked from MapComplete/MapComplete
Themes(zhv): Slight cleanup
This commit is contained in:
parent
3909ad3079
commit
124376470a
1 changed files with 68 additions and 3 deletions
|
@ -120,10 +120,10 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"calculatedTags": [
|
"calculatedTags": [
|
||||||
"_closest_osm_stop_id=closest(feat)('transit_stops')?.properties?.id",
|
"_closest_osm_stop_id=closest(feat)('all_transit_stops')?.properties?.id",
|
||||||
"_closest_osm_stop_distance=distanceTo(feat)(feat.properties._closest_osm_stop_id)",
|
"_closest_osm_stop_distance=distanceTo(feat)(feat.properties._closest_osm_stop_id)",
|
||||||
"_closest_osm_stop_name=closest(feat)('transit_stops')?.properties?.name",
|
"_closest_osm_stop_name=closest(feat)('all_transit_stops')?.properties?.name",
|
||||||
"_closest_osm_stop_ifopt=closest(feat)('transit_stops')?.properties?.['ref:IFOPT']",
|
"_closest_osm_stop_ifopt=closest(feat)('all_transit_stops')?.properties?.['ref:IFOPT']",
|
||||||
"_has_closeby_feature=(feat.properties._closest_osm_stop_ifopt === feat.properties._ifopt) ? 'yes' : (feat.properties._closest_osm_stop_distance < 15 ? 'yes' : (feat.properties._closest_osm_stop_distance > 25 ? 'no' : 'maybe'))",
|
"_has_closeby_feature=(feat.properties._closest_osm_stop_ifopt === feat.properties._ifopt) ? 'yes' : (feat.properties._closest_osm_stop_distance < 15 ? 'yes' : (feat.properties._closest_osm_stop_distance > 25 ? 'no' : 'maybe'))",
|
||||||
"_ifopt=feat.properties.DHID",
|
"_ifopt=feat.properties.DHID",
|
||||||
"_tags='public_transport=platform;ref:IFOPT='+feat.properties._ifopt+';name='+feat.properties.Name"
|
"_tags='public_transport=platform;ref:IFOPT='+feat.properties._ifopt+';name='+feat.properties.Name"
|
||||||
|
@ -132,10 +132,75 @@
|
||||||
{
|
{
|
||||||
"builtin": "transit_stops",
|
"builtin": "transit_stops",
|
||||||
"override": {
|
"override": {
|
||||||
|
"#": "We're getting all public_transport=platforms since when importing ZHV stops, we don't add the type-specific tags.",
|
||||||
|
"source": {
|
||||||
|
"osmTags": "public_transport=platform"
|
||||||
|
},
|
||||||
|
"id": "all_transit_stops",
|
||||||
"name": {
|
"name": {
|
||||||
"en": "Public transport stops in OSM"
|
"en": "Public transport stops in OSM"
|
||||||
},
|
},
|
||||||
"tagRenderings+": [
|
"tagRenderings+": [
|
||||||
|
{
|
||||||
|
"id": "type",
|
||||||
|
"question": {
|
||||||
|
"en": "What kind of transit types is this stop used for?"
|
||||||
|
},
|
||||||
|
"condition": "_geometry:type=Point",
|
||||||
|
"multiAnswer": true,
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"if": "bus=yes",
|
||||||
|
"ifnot": {
|
||||||
|
"and": [
|
||||||
|
"bus=",
|
||||||
|
"highway="
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"then": {
|
||||||
|
"en": "This stop is used for bus transit."
|
||||||
|
},
|
||||||
|
"addExtraTags": [
|
||||||
|
"highway=bus_stop"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "train=yes",
|
||||||
|
"ifnot": "train=",
|
||||||
|
"then": {
|
||||||
|
"en": "This stop is used for train transit."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "light_rail=yes",
|
||||||
|
"ifnot": "light_rail=",
|
||||||
|
"then": {
|
||||||
|
"en": "This stop is used for light rail transit."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "subway=yes",
|
||||||
|
"ifnot": "subway=",
|
||||||
|
"then": {
|
||||||
|
"en": "This stop is used for subway transit."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "tram=yes",
|
||||||
|
"ifnot": "tram=",
|
||||||
|
"then": {
|
||||||
|
"en": "This stop is used for tram transit."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "ferry=yes",
|
||||||
|
"ifnot": "ferry=",
|
||||||
|
"then": {
|
||||||
|
"en": "This stop is used for ferry transit."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "ifopt",
|
"id": "ifopt",
|
||||||
"question": {
|
"question": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue