[Feature] Change Overpass API server
Closed this issue · 2 comments
This is not exactly feature request nor bug but rather a question.
When I try different styles and areas, rcityview every time downloads OSM data via Overpass API. I found URL of the server in zzz.R file:
osmdata::set_overpass_url("https://overpass.kumi.systems/api/interpreter")
Is it possible to run my own (local) Overpass API server to download data faster and not overloading remote server? I never need that but I can try. When I will run my own server, should I just change URL in zzz.R and load rcityview in R or should I do some special steps?
I was able to set my own Overpass API URL using this set of commands:
library(osmdata)
# load osmdata package
get_overpass_url()
# check current server
new_url <- ("http://localhost:8888/api/interpreter")
# set new URL
set_overpass_url(new_url)
# confirm new URL
get_overpass_url()
# check current server again
Then I execute this command:
p <- cityview(name = "Zakopane", zoom = 1)
Progress bar grows but finally I got error message: Error in overpass_query(query = obj$overpass_call, quiet = quiet, encoding = encoding) : object 'doc' not found (last part is translated by me because I don't know how to change messages language).
Is someone able to help me? Which logs should I show?
Most of my troubles were caused by the local Overpass server not being properly configured. I'm closing the report for now.