Recomended Way to Extend Graphhopper

I managed to create a minimal working example: minimal-graphhopper I hope it is a useful starting point. Would you add something to that or have some things that could be improved in the structure of the code?

Also, I assume that create-new-flagencoder.md needs to be updated since as far as I understood I needed to update DefaultFlagEncoderFactory instead of adding the new FlagEncoder to EncodingManager.parseEncoderString.

The API works now fine, but I experience two issues when running the routing in the browser:

  1. If I select two points, the routing works. But if I first press on one of the encoders I get No area description found and I cannot select points until I reload the page back to localhost:8989. Am I missing something?
    image

  2. Is there a simple way in my minimal example for the new FlagEncoder to have its own symbol (or reuses another symbol) in the browser?