datakind / dk-routing

Container-based Action Routing Tool (CART)
MIT License
8 stars 11 forks source link

Make it possible to update vehicles or maps via streamlit #59

Closed blakeflei closed 5 months ago

blakeflei commented 5 months ago

Background: Adding in the ability to upload .lua files (with a corresponding build_parameters.yml) file so vehicle profiles can be updated via the streamlit app. Added the ability for *.osm.pbf maps to be uploaded also (happens to be helpful for our use case, but may be generally useful).

Functional Changes: This update adds in a conditional button that appears when files are uploaded. The 'Available vehicle profiles:' text at the top of the app should also update (if any vehicles are changed/updated).

If any of the above occur, the temporary_build_profiles() function will be run, which should (?) update both the map and vehicles.

Should address Issue 58.