mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-22 15:06:32 +00:00
sort route avoidance classes explicitly
This commit is contained in:
@@ -407,7 +407,7 @@ export async function calculateRouteWithLegs(
|
||||
}
|
||||
|
||||
const avoiding = profile === 'driving' && avoid.length > 0 && valhallaAvailable()
|
||||
? [...avoid].sort()
|
||||
? [...avoid].sort((a, b) => a.localeCompare(b))
|
||||
: []
|
||||
|
||||
const coords = waypoints.map((p) => `${p.lng},${p.lat}`).join(';')
|
||||
|
||||
Reference in New Issue
Block a user