use new routing server

This commit is contained in:
vcoppe
2025-03-22 13:32:45 +01:00
parent b5bf06b37a
commit 47692656e4

View File

@@ -59,7 +59,7 @@ async function getRoute(
brouterProfile: string, brouterProfile: string,
privateRoads: boolean privateRoads: boolean
): Promise<TrackPoint[]> { ): Promise<TrackPoint[]> {
let url = `https://routing.gpx.studio?lonlats=${points.map((point) => `${point.lon.toFixed(8)},${point.lat.toFixed(8)}`).join('|')}&profile=${brouterProfile + (privateRoads ? '-private' : '')}&format=geojson&alternativeidx=0`; let url = `http://ns339329.ip-37-187-249.eu?lonlats=${points.map((point) => `${point.lon.toFixed(8)},${point.lat.toFixed(8)}`).join('|')}&profile=${brouterProfile + (privateRoads ? '-private' : '')}&format=geojson&alternativeidx=0`;
let response = await fetch(url); let response = await fetch(url);