This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Local cache of OSM data that I can query with Overpass QL

0

I'm making an application that will need to query OSM data using Overpass QL. Instead of querying https://overpass-turbo.eu/ for every user request, I would like to query the data once, and cache it in my own database. Future queries in the same area would use the cached data.

How can I do this? Would I need to setup some kind of local OSM server with the cached data? Is there a guide somewhere on how to do that?

If that's not readily available and I have to do a lot myself, how much of it do I have to do from scratch? Will I need to design a database model for the data myself, and then query from overpass-turbo and store in my own DB? Do I need to write my own parser for Overpass QL for my application to query from my "osm cache" db?

Is there already a library (for Java) that can do what I'm looking for so I won't have to reinvent the wheel?

asked 27 Dec '19, 01:52

devil0150's gravatar image

devil0150
11112
accept rate: 0%


One Answer:

1

Overpass is open source and has installation instructions online. I don't know if there is a way to cache as you describe, but the whole database can be cloned during setup and kept up to date with diffs.

answered 27 Dec '19, 15:12

InsertUser's gravatar image

InsertUser
11.0k1369185
accept rate: 19%

Source code available on GitHub .