Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.