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 a file exactly matches build_parameters.yml, will be moved from the upload folder to the root folder.
Vehicle files with *.lua extension will all be copied to the /osrm-backend/profiles folder.
Map files with a *.pbf extension will be copied to the root folder, renamed to upload_map.osm, and and osm_filename environment variable will be updated (akin to the request_map function).
If any of the above occur, the temporary_build_profiles() function will be run, which should (?) update both the map and vehicles.
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).
build_parameters.yml
, will be moved from the upload folder to the root folder.*.lua
extension will all be copied to the/osrm-backend/profiles
folder.*.pbf
extension will be copied to the root folder, renamed toupload_map.osm
, and andosm_filename
environment variable will be updated (akin to the request_map function).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.