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 (https://d3ko6ohfm7cdx2.cloudfront.net) 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 https://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=com.graphhopper&a=graphhopper-web&v=LATEST 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 https://d3ko6ohfm7cdx2.cloudfront.net/ 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.

Hi,
I am running in the exact same problem. Following the quickstart tutorial here: https://github.com/graphhopper/graphhopper/blob/master/reader-gtfs/README.md#quick-start

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(DefaultFlagEncoderFactory.java:60)
        at com.graphhopper.routing.util.EncodingManager.parseEncoderString(EncodingManager.java:393)
        at com.graphhopper.routing.util.EncodingManager$Builder.addAll(EncodingManager.java:190)
        at com.graphhopper.GraphHopper.createEncodingManager(GraphHopper.java:540)
        at com.graphhopper.GraphHopper.init(GraphHopper.java:488)
        at com.graphhopper.http.GraphHopperManaged.<init>(GraphHopperManaged.java:90)


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?

Thanks
Lukas

Powered by Discourse