Skip to content

Commit

Permalink
fix: template call to valhalla service (gis-ops#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtertiaer committed Oct 9, 2023
1 parent c204bb8 commit ff812fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Controls/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
fetchReverseGeocodeIso,
updateIsoSettings,
} from 'actions/isochronesActions'
import VALHALLA_OSM_URL from 'utils/valhalla'

const pairwise = (arr, func) => {
let cnt = 0
Expand All @@ -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),
Expand Down

0 comments on commit ff812fd

Please sign in to comment.