[GraphHopper] export routing graph data

Peter graphhopper at gmx.de
Sun Jan 4 20:24:16 UTC 2015


Hi Rossano,

this is not implemented but should not be hard to do. E.g. for the edges
you could do (I don't know the format just an example for a debug output):

iter = graph.getAllEdges();
while(iter.next()) {
   System.out.println(iter.getBaseNode() + "->" + iter.getAdjNode() + ",
" + iter.fetchWayGeometry(2) + ", " + iter.getDistance() + ...);
}

Regards,
Peter

On 24.12.2014 18:02, Rossano Schifanella wrote:
> Hi all,
>
> is there a way to export the binary graph data (nodes, edges files) in
> a plain text format or an alternative format that can be imported by
> libraries like networkx or igraph?
>
> Thanks!
>
> Regards,
> Rossano
>
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper




More information about the GraphHopper mailing list