diff --git a/analysers/analyser_merge_public_transport_FR_stan.py b/analysers/analyser_merge_public_transport_FR_stan.py index 92ba05ada..b1150fd63 100644 --- a/analysers/analyser_merge_public_transport_FR_stan.py +++ b/analysers/analyser_merge_public_transport_FR_stan.py @@ -42,19 +42,22 @@ def __init__(self, config, logger = None): Conflate( select = Select( types = ["nodes", "ways"], - tags = [{"highway": "bus_stop"}, {"public_transport": "stop_position"}]), + tags = [{"public_transport": "platform"}]), conflationDistance = 2, - osmRef = "ref:FR:STAN", + osmRef = "gtfs:stop_id:FR-GES-STAN", mapping = Mapping( static1 = { - "highway": "bus_stop", - "public_transport": "stop_position", - "bus": "yes"}, + "public_transport": "platform", + "highway": "platform", + "bus": "yes", + }, static2 = {"source": self.source}, mapping1 = { - "ref:FR:STAN": "stop_code", + "gtfs:stop_code:FR-GES-STAN": "stop_code", + "gtfs:stop_id:FR-GES-STAN": "stop_id", + "gtfs:stop_name:FR-GES-STAN": "stop_name", "wheelchair": lambda fields: self.wheelchair_boarding[fields.get("wheelchair_boarding")]}, - mapping2 = {"name": "stop_name"}, + mapping2 = {"name": "stop_name", "ref": "stop_code"}, text = lambda tags, fields: T_("{0} stop of {1}", place, fields["stop_name"]) ))) wheelchair_boarding = {