-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate OSRM settings from preferences to server.config
The settings for the OSRM modes are moved from preferences to config, and use a new format that is more similar to the trRouting modes. Instead of all the modes that use OSRM being placed in the same `defaultPreferences.osrmRouting.modes` object, they are all placed in the server configuration's `routing` object. There, all modes no matter the engine are at the same level, have a `defaultEngine` field, and an `engines` field that allows for each mode to have configs for multiple routing engines. For exemple, at the moment, 'driving' has osrmRouting as its `defaultEngine` and only configured engine, but we could add a new config that uses a different engine without having to create a new `driving` object elsewhere. We also change the `osrmPath` field to `host`, as it was not used anywhere in the code, and we can now use `host` to use remote OSRM instances. At the moment, we still allow the old format to be used so that the instances aren't broken, but it will be fully deprecated in the future. Fix: #1084
- Loading branch information
1 parent
5ced7f9
commit 3dd71b0
Showing
12 changed files
with
411 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.