I have OSM data using osm2pgsql (slim) with default style in PostgreSQL GIS DB. For my usage I'm trying to predict where the customer will go according to his current position on some way node. In order to do so I want to get the all way (road) data by its current partial way. I know how to do it by overpass using recursion up but can't find how to do it with SQL query (actually I done something but not so good by getting the way ref and then look for more ways with the same ref) Tn'x for any help. asked 30 May '18, 11:22 altopalo |
I found the solution, so is someone will search for it. Need to use planet_osm_rels table Sample:
answered 13 Dec '18, 12:53 altopalo |
The answer is probably something with the relations between the data objects in the DB. So is there a good explanations of the data schema & relations of the osm2postgress schema? (can't find a decent documentation on that)