Skip to content

Conversation

@Antiik91
Copy link
Member

@Antiik91 Antiik91 commented Dec 19, 2025

Proposed Changes

  • Add car ferries to kela configuration.
  • Calculate the whole journey when emphasizeOneWayJourney is enabled

Note on testing

  • It is asked by the stakeholders to verify that these changes does not enable routing to Sweden or Estonia.

Pull Request Check List

  • A reasonable set of unit tests is included
  • Console does not show new warnings/errors
  • Changes are documented or they are self explanatory
  • This pull request does not have any merge conflicts
  • All existing tests pass in CI build

Review

  • Read and verify the code changes
  • Test the functionality by running the UI locally with all popular browsers available in your platform
  • Check that the implementation matches the design, when such one is defined in an issue in Azure Boards
  • Merge the pull request

export function getTotalDrivingDistance(itinerary) {
export function getTotalDrivingDistance(itinerary, config = {}) {
// Don't rely only driving legs when calculating the one way journey.
if (config?.emphasizeOneWayJourney) {
Copy link
Member

Choose a reason for hiding this comment

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

no need for ? as you provide default for config

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants