Skip to content

Commit ec4c6d7

Browse files
committed
Update public transport tags to use bus_stop for platform selection
1 parent 0ab8b8e commit ec4c6d7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

analysers/analyser_merge_public_transport_FR_stan.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ def __init__(self, config, logger = None):
4242
Conflate(
4343
select = Select(
4444
types = ["nodes", "ways"],
45-
tags = [{"highway": "platform", "public_transport": "platform"}]),
45+
tags = [{"highway": "bus_stop", "public_transport": "platform"}]),
4646
conflationDistance = 2,
4747
osmRef = "gtfs:stop_id:FR-GES-STAN",
4848
mapping = Mapping(
4949
static1 = {
5050
"public_transport": "platform",
51-
"highway": "platform",
51+
"highway": "bus_stop",
5252
"bus": "yes",
5353
},
5454
static2 = {"source": self.source},
@@ -57,7 +57,10 @@ def __init__(self, config, logger = None):
5757
"gtfs:stop_id:FR-GES-STAN": "stop_id",
5858
"gtfs:stop_name:FR-GES-STAN": "stop_name",
5959
"wheelchair": lambda fields: self.wheelchair_boarding[fields.get("wheelchair_boarding")]},
60-
mapping2 = {"name": "stop_name", "ref": "stop_code"},
60+
mapping2 = {
61+
"name": "stop_name",
62+
"ref": "stop_code"
63+
},
6164
text = lambda tags, fields: T_("{0} stop of {1}", place, fields["stop_name"]) )))
6265

6366
wheelchair_boarding = {

0 commit comments

Comments
 (0)