Current best practice for including custom encoded values?

Hello everyone,

I recently started working with GraphHopper and was wondering what the current best practive on adding custom encoded values is and if customAreas could be used as a stand-in? (i.e. I have an osm-based net that i added vustom values to).

I alrerady looked at the forum posts and in the documentation, but the mentions in the documentation seems to be outdated. (since the class referenced no longer exists: https://github.com/graphhopper/graphhopper/blob/cbf78abd4ea7db27969db2435ff4d0ebbbf681c7/docs/core/profiles.md#setting-up-encoded-values

I am also wondering if the way it is done in this pull request still applies or if there is an easier way since the recent updates: https://github.com/graphhopper/graphhopper/pull/2707/changes

I have two use cases i would like to apply this logic to: adding further descriptions to custom cycling routes and adding a custom environmental score (which would propbably need to be a custom attribute).

Thanks in advance, i am happy about anything that may help point me in the right direction.

I am also wondering if the way it is done in this pull request still applies

It is a bit outdated. Better see this point-based importer feature as a simple example on how to do it.

Also have a look into the KVStorage for sparse values (see a more generic approach)

Also I fixed the link in the documentation to point to DefaultImportRegistry.java. Thanks for the hint.

I see thats very helpful, Thank you for the swift reply!