g1, g2 = match.groups()
pt_stop['ifopt_stop_id'] = f"at:{g1}:{g2}"
continue
+ if monitor_template := pt_stop.get('monitor_template'):
+ if monitor_template.get('name') == "Fahrplan Abfahrtsmonitor VVT":
+ vvt_stop_id = int(monitor_template['parameter'][2]['value'])
+ pt_stop['ifopt_stop_id'] = f'at:47:{vvt_stop_id}'
+ continue
if position_elevation := pt_stop.get('position'):
if position := position_elevation.get('position'):
bus_stop_feature_list = bus_stop_geojson['features']
if distance_m < 30:
name1 = pt_stop["name"] if "name" in pt_stop else pt_stop.get("name_local", "(unnamed stop)")
name2 = closest_bus_stop_feature['properties']["hst_name"]
- choice = input_yes_no_quit(f'Assign "{name1}" to "{name2}" [yes, no, quit]?', None)
+ choice = input_yes_no_quit(f'Assign "{name1}" to "{name2}" [yes, no, quit]? ', None)
if choice == Choice.no:
return
elif choice == Choice.quit: