Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Use external lib for labelling alternative routes #1218

Merged
merged 1 commit into from
Oct 22, 2021

Conversation

bbecquet
Copy link
Contributor

Description

Replace the internal implementation of the alternative route labeller by a dependency to https://www.npmjs.com/package/alt-route-labeller (which is the same algo anyway :))

Why

Less code to maintain!

sdrll
sdrll previously approved these changes Oct 21, 2021
Copy link
Contributor

@sdrll sdrll left a comment

Choose a reason for hiding this comment

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

LGTM, great idea

src/adapters/scene_direction.js Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/adapters/scene_direction.js Outdated Show resolved Hide resolved
@bbecquet
Copy link
Contributor Author

@fatal69100 Thanks for your review!
I had actually forgotten to push the latest version using v0.3… Great you noticed it :)
The 0.3 is better as it can work directly on an array of geometries, removing the need for the featureCollection transformation, which can be costly on long routes.

@bbecquet bbecquet merged commit ee69f9d into Qwant:master Oct 22, 2021
@bbecquet bbecquet deleted the labeller-lib branch October 22, 2021 06:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants