Closed vbmendes closed 4 months ago
Closes #199.
This PR adds the folium_map parameter to the plot_routes_folium function.
folium_map
For this, I refactored the plot_route_folium and broke it into 3 helper functions:
plot_route_folium
result_dict_to_coords
CompassApp
(lat, lng)
_create_empty_folium_map
plot_coords_folium
This way, I can reuse these three pieces of code in the plot_routes_folium function.
plot_routes_folium
Closes #199.
This PR adds the
folium_map
parameter to the plot_routes_folium function.For this, I refactored the
plot_route_folium
and broke it into 3 helper functions:result_dict_to_coords
to convert a result fromCompassApp
into a sequence of coordinates in the format(lat, lng)
._create_empty_folium_map
plot_coords_folium
to plot the coordinates in a folium Map.This way, I can reuse these three pieces of code in the
plot_routes_folium
function.