Skip to content

Conversation

@landonreed
Copy link
Member

@landonreed landonreed commented Apr 9, 2021

To test config override, add this bit from example-config.yml to your active config:

### The default query parameters can be overridden be uncommenting this object.
### Note: the override values must be valid values within otp-ui's query-params.js
# defaultQueryParams:
# maxWalkDistance: 3219 # 2 miles in meters

### The default query parameters can be overridden be uncommenting this object.
### Note: the override values must be valid values within otp-ui's query-params.js
# defaultQueryParams:
# maxWalkDistance: 3219 # 2 miles in meters
Copy link
Collaborator

@binh-dam-ibigroup binh-dam-ibigroup Apr 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The UI does not seem to be set on the default query params, does this PR intend to do that?

As an example, if you set optimize: TRANSFERS, the optimization setting will still appear as SPEED in the UI (with a red dot indicating that that is not the default setting, though.)

Copy link
Collaborator

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a suggestion to reword the comment regarding defaultQueryParams but I'm inclined to accept as is.

@github-actions
Copy link
Contributor

🎉 This PR is included in version 3.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants