@@ -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