FlagEncoder and Encoded Values

Hello, I’m newbie and I have a question. What is FlagEncoder, Encoded Values and the difference between them?

Since GH 6.0 (just released) there is no FlagEncoder anymore. GraphHopper reserves some memory for each edge that is used to store different attributes of the corresponding road. These attributes are called EncodedValues. Then there are TagParsers, which interpret the OSM way tags when the OSM data is imported. Each TagParser typically sets the value of one of the encoded values. For example the OSMRoadClassParser reads the highway tag and sets the value of the RoadClass encoded value. FlagEncoders were something in between and if you are using GH 6.0 you probably do not need them.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.