Hi Laurent, if one edge is a ferry or not can be stored inside the flags or in a separate storage where you can access properties by their edgeId or nodeId. I'll release a TagStorage in the next days (already finished but need to properly integrate it).
Or you store it in the flags of an edge, which can be done similar to what is done for roundabouts: https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/CarFlagEncoder.java#L235 I guess you just need this information when fetching the instructions (which is done in the Path class), then indeed the more generic but probably a bit slower TagStorage should be better suited. Regards & Bitteschön ;) Peter On 02.02.2015 14:09, Laurent Bendel wrote: > Hi all, > still investigating there, and trying to understand how graphhopper works. > Here’s what I’d like to have: store some other tags on the edges during the > graph building, and get them back with the instructions list. More > specifically, it would be great to be able to mark and show the ferry > crossings. As far as I can tell, the name is the only tag stored on the > graph? Is there any way to make space for tags associated with highways such > as ferries, or tunnels ? where should I be looking to give me a headstart ? > I’m willing to contribute but I lack the big picture on how the graph is > built and how data is stored with it. > > Danke vielmal, > Laurent > > > _______________________________________________ > GraphHopper mailing list > [email protected] > https://lists.openstreetmap.org/listinfo/graphhopper _______________________________________________ GraphHopper mailing list [email protected] https://lists.openstreetmap.org/listinfo/graphhopper
