speed up POI retrieval by custom overpass api url (#596)
* speed up POI retrieval by custom overpass api url * consistent overpass api url default * switches default to overpass-api.de --------- Co-authored-by: Christian Beutel <>
This commit is contained in:
@@ -16,5 +16,6 @@ ENV MEILI_URL=http://127.0.0.1:7700
|
||||
ENV PUBLIC_DISABLE_SIGNUP=false
|
||||
ENV UPLOAD_USER=
|
||||
ENV UPLOAD_PASSWORD=
|
||||
ENV PUBLIC_OVERPASS_API_URL=
|
||||
|
||||
CMD crond && node build
|
||||
@@ -9,9 +9,10 @@ import * as M from "maplibre-gl";
|
||||
import { type LngLatBounds, type MapMouseEvent, type StyleSpecification } from "maplibre-gl";
|
||||
import { pois, type BaseLayer, type MapState } from "./layers";
|
||||
import type { OverpassResponse } from "./types";
|
||||
import { env } from '$env/dynamic/public'
|
||||
|
||||
export class OverpassLayer implements BaseLayer {
|
||||
private overpassApiURL: string = "https://overpass.private.coffee/api/interpreter"
|
||||
private overpassApiURL: string = (env.PUBLIC_OVERPASS_API_URL && env.PUBLIC_OVERPASS_API_URL.length > 0 ? env.PUBLIC_OVERPASS_API_URL : "https://overpass-api.de") + "/api/interpreter";
|
||||
|
||||
data: GeoJSON.FeatureCollection = ({ type: 'FeatureCollection', features: [] });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user