Skip to content

Commit 200cd1f

Browse files
authored
Update public transport tags and mapping in analyser
1 parent 92ed87a commit 200cd1f

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

analysers/analyser_merge_public_transport_FR_stan.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,23 @@ def __init__(self, config, logger = None):
4242
Conflate(
4343
select = Select(
4444
types = ["nodes", "ways"],
45-
tags = [{"highway": "bus_stop"}, {"public_transport": "stop_position"}]),
45+
tags = [{"public_transport": "platform"}]),
4646
conflationDistance = 2,
47-
osmRef = "ref:FR:STAN",
47+
osmRef = "ref",
4848
mapping = Mapping(
4949
static1 = {
50-
"highway": "bus_stop",
51-
"public_transport": "stop_position",
52-
"bus": "yes"},
50+
"public_transport": "platform",
51+
"gtfs:location_type:FR-GES-STAN": "0",
52+
"bus": "yes",
53+
},
5354
static2 = {"source": self.source},
5455
mapping1 = {
55-
"ref:FR:STAN": "stop_code",
56+
"gtfs:stop_code:FR-GES-STAN": "stop_code",
57+
"gtfs:stop_id:FR-GES-STAN": "stop_id",
58+
"gtfs:stop_name:FR-GES-STAN": "stop_name",
59+
"gtfs:stop_id:FR-GES-STAN": "stop_code",
5660
"wheelchair": lambda fields: self.wheelchair_boarding[fields.get("wheelchair_boarding")]},
57-
mapping2 = {"name": "stop_name"},
61+
mapping2 = {"name": "stop_name", ref: "stop_id"},
5862
text = lambda tags, fields: T_("{0} stop of {1}", place, fields["stop_name"]) )))
5963

6064
wheelchair_boarding = {

0 commit comments

Comments
 (0)