# 2. Route Points


<!-- 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/route_points.py#L31"
target="_blank" style="float:right; font-size:smaller">source</a>

### fetch_route_points

>  fetch_route_points (route_id:str, sleep_duration:float=0.1)

*Fetches geo-locations for a given BMTC `route_id` from the API.*

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

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

### convert_route_to_geojson

>  convert_route_to_geojson (route, properties)

*Converts route into a geojson Feature.*

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

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

### get_route_id

>  get_route_id (filepath:pathlib.Path)

*The filepath has `route_id` at the end.*

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

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

### task_fetch_route_points

>  task_fetch_route_points (data_directory:pathlib.Path)
