From a46a154c998e205e074641340026f99dc3566259 Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 9 Nov 2023 03:35:22 -0500 Subject: [PATCH] fix: template call to valhalla service (#198) (#199) --- src/Controls/index.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Controls/index.jsx b/src/Controls/index.jsx index e24de04..f67ebe2 100644 --- a/src/Controls/index.jsx +++ b/src/Controls/index.jsx @@ -22,6 +22,7 @@ import { fetchReverseGeocodeIso, updateIsoSettings, } from 'actions/isochronesActions' +import { VALHALLA_OSM_URL } from 'utils/valhalla' const pairwise = (arr, func) => { let cnt = 0 @@ -42,7 +43,7 @@ class MainControl extends React.Component { } async getLastUpdate() { - const response = await fetch('https://valhalla1.openstreetmap.de/status') + const response = await fetch(`${VALHALLA_OSM_URL}/status`) const data = await response.json() this.setState({ lastUpdate: new Date(data.tileset_last_modified * 1000),