I would like to use osm2po as a routing engine/library. My problem is that in geojson response, there is no osm_id value returned, only id field which, if I assume correctly is not a fixed value. I mean if I made new graph file from newer osm data, id of the same feature/edge could be different. Is there a way to get osm_id from service response?


No. (Not yet). But if you can give me a good use case, I will think about it. Alternatively use the returned SegmentId for Database-lookups. The value corresponds to the ID-Field in the 2po-table where all corresponding osm-IDs are in.

Nevertheless, osm2po-IDs change because OSM-IDs do as well.

  • Hm ok I'm gis newbie here, I assumed osm_id doesn't change, but now when I think of it, not depending on fixed osm_id makes sense.. This makes me think about another question, but I will open new question for it. – Kamil Jan 27 '13 at 20:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.