This pull request refactors the get_route_overview function in main.py to group and sort the results by route_type. It introduces a new dictionary, grouped_results, to group the results by route_type. It then sorts the routes within each route_type based on the display_order. Finally, it converts the grouped_results dictionary into a list of dictionaries, final_results, and returns it. This change improves the organization and ordering of the results returned by the get_route_overview function.
This pull request refactors the get_route_overview function in main.py to group and sort the results by route_type. It introduces a new dictionary, grouped_results, to group the results by route_type. It then sorts the routes within each route_type based on the display_order. Finally, it converts the grouped_results dictionary into a list of dictionaries, final_results, and returns it. This change improves the organization and ordering of the results returned by the get_route_overview function.