Mapping OSM Tags to Graphopper Tags

Hi

Where in the code base would I need to look to understand how the OSM road tags are read in and mapped to the attributes such as car_access used by graphopper?

My goal is to customize the OSM data and I would like to understand what tags I should change in the OSM data to get the appropriate change in the routing if that makes sense.

Thanks for any assistance

Take a look at the EncodedValue interface and its implementations. This is basically how GraphHopper stores the information in its own graph. Implementations of TagParser read the raw OSM data and set EncodedValues accordingly. The OSMSurfaceParser is a pretty good example.

1 Like