Why not ask your question on the new OpenStreetMap Community Forum?

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%


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.

permanent link

answered 27 Dec '19, 15:12

InsertUser's gravatar image

InsertUser
10.5k1368177
accept rate: 19%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×75
×64
×38

question asked: 27 Dec '19, 01:52

question was seen: 1,599 times

last updated: 27 Dec '19, 15:12

powered by OSQA