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
> [email protected]
> https://lists.openstreetmap.org/listinfo/graphhopper

_______________________________________________
GraphHopper mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/graphhopper

Reply via email to