# 1. Routes


<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

# Functions

------------------------------------------------------------------------

<a
href="https://github.com/traffic-kowshik/traffic-data-bengaluru/blob/main/traffic_data_bengaluru/bmtc/routes.py#L28"
target="_blank" style="float:right; font-size:smaller">source</a>

### fetch_routes

>  fetch_routes (pattern:str='', sleep_duration:float=0.1)

*Fetches BMTC routes matching the given pattern, or all routes if
pattern is empty.*

------------------------------------------------------------------------

<a
href="https://github.com/traffic-kowshik/traffic-data-bengaluru/blob/main/traffic_data_bengaluru/bmtc/routes.py#L56"
target="_blank" style="float:right; font-size:smaller">source</a>

### process_routes

>  process_routes (routes)

*Process and clean route data, returning a DataFrame with `route_id` and
`route_number`.*

------------------------------------------------------------------------

<a
href="https://github.com/traffic-kowshik/traffic-data-bengaluru/blob/main/traffic_data_bengaluru/bmtc/routes.py#L68"
target="_blank" style="float:right; font-size:smaller">source</a>

### task_fetch_routes

>  task_fetch_routes (data_directory)

------------------------------------------------------------------------

<a
href="https://github.com/traffic-kowshik/traffic-data-bengaluru/blob/main/traffic_data_bengaluru/bmtc/routes.py#L89"
target="_blank" style="float:right; font-size:smaller">source</a>

### get_routes

>  get_routes (data_directory:pathlib.Path)
