Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 1 down vote accepted

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.

share|improve this answer
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 posting your answer, you agree to the privacy policy and terms of service.

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