mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 17:22:19 +00:00
feat(places): export normalizeOsrmSteps from sources/places so any route proxy serves Directions' turn-by-turn steps
This commit is contained in:
1 parent
fa6ae42525
commit
c1ca67bdb1
5 files changed
+23
-3
No files matched your search
@@ -1,3 +1,7 @@
|
||||
// Turn-by-turn steps for a route, as Core's own /api/route serves them with
|
||||
// steps=1; a hosted route proxy projects the same OSRM answer.
|
||||
export { normalizeOsrmSteps } from './routeSteps.js';
|
||||
|
||||
function placeContextPriority(types) {
|
||||
const typeSet = new Set(types);
|
||||
if (typeSet.has('historical_landmark') || typeSet.has('monument')) return 100;
|
||||
|
||||
Reference in new issue
Block a user