[GraphHopper] Info about flags

Jan Soelter jan.soelter at graphhopper.com
Fri May 22 13:29:07 UTC 2015


Hi Borja,

in GraphHopper different FlagEncoder transform OSM data into a memory
efficient representation of edges. That is, the FlagEncoder themselve
know how to convert the flags, e.g. carFlagEncoder.getSpeed(flags) or
carFlagEncoder.getDouble(flags, key).
(carFlagEncoder = hopper.getEncodingManager().getEncoder("car"))
 
But the FlagEncoder only store data which is important for routing. Thus
there is in no general street information available in the flags.
So you either modify create a modified FlagEncoder which stores the data
you want to access, or you have to create a Lookuptable of edgeId ->
OSMproperty during the import.

Cheers,
Jan   


Am 22.05.2015 um 14:48 schrieb Borja Rodríguez:
> Hello,
> I'm trying to get information for a personal project of an edge from
> the flags. But once I have the 'long' with the flags, I don't know
> that is represented by each bit.
> Anybody know any document where indicated? Or where to get that
> information?
> I would like to know if such a street has a bike path or pedestrian.
>
> Thanks to all.
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150522/43b380d2/attachment.html>


More information about the GraphHopper mailing list