-
Notifications
You must be signed in to change notification settings - Fork 117
Description
Description
What kind of feature you are suggesting?
Use-case: Allow air-gapped usage of Valhalla. This means that end-users can fully run Valhalla against their own openstreetmap/valhalla/nominatim stack.
Most of this is possible already, except for a few things:
- 1: Allow the user to specify their own OSM URL (default =
https://www.openstreetmap.org)- Suggestion: Add a key (e.g.
VITE_OSM_URL) to the.envfile, which is used in the applicable places. E.g. here:web-app/src/utils/nominatim.ts
Line 56 in 54d89c9
description: `https://www.openstreetmap.org/${result.osm_type}/${result.osm_id}`, web-app/src/components/map/index.tsx
Line 236 in 54d89c9
const osmURL = `https://www.openstreetmap.org/#map=${zoom}/${lat}/${lng}`;
- Suggestion: Add a key (e.g.
- 2: Allow the user to specify their own OSM tile server URL (default =
https://tile.openstreetmap.org/{z}/{x}/{y}.png)- Suggestion: Use the already available
VITE_TILE_SERVER_URLfor this:Line 4 in 54d89c9
VITE_TILE_SERVER_URL="https://tile.openstreetmap.org/{z}/{x}/{y}.png" web-app/public/styles/carto.json
Line 6 in 54d89c9
"tiles": ["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],
- Suggestion: Use the already available
- 3: Include the required shortbread sprites (currently
vector.openstreetmap.orgis referenced)- Suggestion: Include a copy of the required shortbread sprites in the web-app repo.
"url": "https://vector.openstreetmap.org/demo/shortbread/sprites/basics/sprites"
- Suggestion: Include a copy of the required shortbread sprites in the web-app repo.
- 4: In the
versatiles-colorful.jsonfile, othervector.openstreetmap.orgreferences are in place. Think of a plan how to solve this. See"glyphs": "https://vector.openstreetmap.org/demo/shortbread/fonts/{fontstack}/{range}.pbf", "https://vector.openstreetmap.org/shortbread_v1/{z}/{x}/{y}.mvt"
Does it solve any problem?
Yes. This allows the self-hosting of the Valhalla web-app so users can use the web-app against their own data store. This is useful in two situations:
- An air-gapped environment, where no external internet access is possible.
- Offline access of map data, in case of an internet outage. This requires that the map data must already be downloaded and setup prior to the usage (as per any self-hosted component).
Situation 2 is what I am interested in. To still be able to access map data at home in case of internet outages.
Screenshots
No response
Additional information
No response