we need OSM Nodes and Ways to use with our own routing algorithm, but we don't want to load all of the data in the RAM of our Server. So we thought about saving all the data in a database and only load some parts for each routing request.
I already had a look at osm2psql and osm2pgrouting but they all don't store just the ways and nodes. It's important to load only ways and nodes as in our special case we have to use our own algorithm.
So the question basically consists of 2 parts:
- Let's say we got an osm-file and want to import it in a database. What tools are good for that?
- How can we read data fast from the database with the input of a bounding box?