Cannot make the Public transport example working

I’m following the example exactly as stated here.

It failed when running with flag_encoders=pt. I tried flag_encoders=car which failed complaining about missing “foot”. So I changed into flag_encoders=foot. This time the server started up but the web page at
localhost:8989 has no map and no form to insert start, end positions as I would expect. Screenshot attached.

What am I doing wrong?Screenshot_2019-12-23_15-37-51

One more question. Is this page ( an example of Public transport? (unfortunately, the page doesn’t show anything)

I’ve had the same problem. You have to download web interface assets from and unpack it to “web/src/main/resources/”.

@karolg Unfortunately, this is not fixing the problem.

Is it possible to prove graphhopper is working with Public transport data?

I cannot make the standard published example working. I tried few supposedly stable branches. Even the website published as working is not working.

Oh, and just to be clear. I don’t expect to have a working website. It is sufficient to have a working unit test.

I am running in the exact same problem. Following the quickstart tutorial here:

I always end up with this error:

2020-02-21 15:31:36.011 [main] INFO  i.d.server.DefaultServerFactory - Registering jersey handler with root path prefix: /
2020-02-21 15:31:36.013 [main] INFO  i.d.server.DefaultServerFactory - Registering admin handler with root path prefix: /
java.lang.IllegalArgumentException: entry in encoder list not supported pt
        at com.graphhopper.routing.util.DefaultFlagEncoderFactory.createFlagEncoder(
        at com.graphhopper.routing.util.EncodingManager.parseEncoderString(
        at com.graphhopper.routing.util.EncodingManager$Builder.addAll(
        at com.graphhopper.GraphHopper.createEncodingManager(
        at com.graphhopper.GraphHopper.init(
        at com.graphhopper.http.GraphHopperManaged.<init>(

I tried switching to another branch, but it didn't change the result. Searching around here on the forum doesn't seem to bring up any solution, or am I wrong there?


1 Like

Same here, nothing new on your side?

We have now a special config for PT. Did you try this?