Rework import process / OSMReader
Currently the import is tuned for speed but is hard to customize. Also it needs lot of memory. We need to change that.
We can use tools like MapDB to make it convenient, low-RAM and still fast to process OSM data. Or use osm2geojson or java mergesort project and look into Chronicle-Map
See also #193 and this discussion.
Another more OSM specific project is OSMonaut
Is SpatiaLite something that could be considered, maybe for embedded systems?
I would like to have it Java only and we do not need special geo feature for the most important data structure.
See also https://github.com/graphhopper/graphhopper/pull/2193#issuecomment-777356336 and https://github.com/graphhopper/graphhopper/issues/1370