optimize line_query station_query