tyrasd / overpass-turbo

A web based data mining tool for OpenStreetMap using the Overpass API.
https://overpass-turbo.eu
Other
947 stars 135 forks source link

Use Overpass-turbo on Local Server Running Overpass API? #558

Closed convolutionbbs closed 1 year ago

convolutionbbs commented 2 years ago

Hello, I have a local server that is running the overpass api with instructions here: https://wiki.openstreetmap.org/wiki/Overpass_API/Installation

I also have installed the overpass-turbo on that server using the fairly simple # npm install, # npm start as found on the README.

Is it possible to configure overpass-turbo to query my local server directly instead of out to the internet? It may be doing this already, but it's not obvious to me where the configuration parameters may be.

Thanks

mmd-osm commented 2 years ago

Overpass turbo runs exclusively in your browser and needs to talk to the overpass API endpoint via http. It doesn’t really matter where you deploy overpass turbo static files. You can add your server endpoint under “Settings”.

simon04 commented 1 year ago

You may customize the suggested servers in the config (before building):

https://github.com/tyrasd/overpass-turbo/blob/b37de36eb81e84e5dde4fd65207d0d89e5bef7cb/js/configs.ts#L7-L13