Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WiP: Restore optional use of a remote Overpass server
When we switched to using a local Overpass server for MapIt Global, the option to use a remote Overpass server instead was removed. This restores that option, controlled by settings in conf/general.yml (LOCAL_OVERPASS, OVERPASS_DB_DIRECTORY and OVERPASS_SERVER.) It's still useful to be able to use the remote server out-of-the-box for testing, and quickly grabbing the KML for and OSM way or relation. Thanks to Cesar Martinez Izquierdo (@dispiste) who made a pull request with similar functionality some time ago, but who closed it (unmerged) later. This commit introduces similar changes, but using urllib2 instead of relying on wget, and using the MapIt general.yml configuration file instead of a new configuration module. (The "WiP" is just to remind me that I haven't tested this with the local overpass server yet.)
- Loading branch information
Showing
2 changed files
with
48 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters