Is there any way that I can export all informations of edge ids from all tiles? #4713
-
Hi, I hope you are all having a good day. I am wondering if there is a way to obtain a list of all possible edge IDs, their geometries, and their osm_way_ids for every tile that we have built. To provide more context, I am not referring to a list of edge IDs from the MM result (trace_attribute options). Instead, I want to generate information for every edge ID based on the osm.pbf and the tiles that Valhalla has built. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
there is an executable called valhalla_export_edges whoch does this. you might have to modify it a little to get all the fields you want but it should be trivial modifications |
Beta Was this translation helpful? Give feedback.
did you build them in the same tileset or separate? if they are separate just run the application with whichever tileset you want to get edges from. if they are combined into a single tileset then you'll need to add code to decide if an edge is within your target area or not. to do that there are varying degrees of exactness. you could simply check if the begin or end node lat lon is in your lat lon bounding box, or you could check if any shape point on the edge is within your lat lon boundign box or you could actually intersect each segment of the shape with the bounding boxes edges or you could do that but take care that they are actually geodesics so you need to intersect arcs rather t…