This is a Jupyter environment that can be used to measure the distance of bus route sections (route legs) of a route using project OSRM.
An excel file including the positional data (latitude and longitude) of sections is required to given to obtain the distances.
Selected route sections can be visualized through a folium map.
Sample output dataset
Sample route section visualization
Google Colab of the implimentation
https://colab.research.google.com/drive/1RGmJ6KMiIC7txTuSZhTjXA5cVCg1oyNR