# 6. Route Details


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

## Observations

- `eta` information is available from this API.

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

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

### fetch_route_details

>  fetch_route_details (route_id:int, sleep_duration:float=0.5)

*Fetch route details for a given route ID from the BMTC API.*

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

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

### extract_route_details

>  extract_route_details (route_details)

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

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

### extract_map_data

>  extract_map_data (route_details)

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

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

### task_fetch_route_details

>  task_fetch_route_details (data_directory:pathlib.Path)

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

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

### get_route_details

>  get_route_details (data_directory:pathlib.Path)

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

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

### get_map_data

>  get_map_data (data_directory:pathlib.Path)

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

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

### get_vehicle_count

>  get_vehicle_count (route_details)

*Return total number of vehicles in route for both directions.*

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

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

### task_fetch_route_details_v2

>  task_fetch_route_details_v2 (data_directory:pathlib.Path)

*v2 of fetch route details, routes with the most vehicles.*
