Repository navigation
Description
Hello Graphhopper Team
I follow all below step:
wget -O gtfs-vbb.zip http://transitfeeds.com/p/verkehrsverbund-berlin brandenburg/213/latest/download
wget http://download.geofabrik.de/europe/germany/brandenburg-latest.osm.pbf
./graphhopper.sh build
java -Xmx8g -Xms8g
-Ddw.graphhopper.datareader.file=brandenburg-latest.osm.pbf
-Ddw.graphhopper.gtfs.file=gtfs-vbb.zip
-Ddw.graphhopper.graph.flag_encoders=pt
-Ddw.graphhopper.graph.location=./graph-cache
-jar web/target/graphhopper-web-*.jar server config.yml
Then i get problem:
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:572)
at com.graphhopper.GraphHopper.init(GraphHopper.java:517)
at com.graphhopper.http.GraphHopperManaged.(GraphHopperManaged.java:90)
at com.graphhopper.http.GraphHopperBundle.run(GraphHopperBundle.java:201)
at com.graphhopper.http.GraphHopperBundle.run(GraphHopperBundle.java:55)
at io.dropwizard.setup.Bootstrap.run(Bootstrap.java:200)
at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:42)
at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:87)
at io.dropwizard.cli.Cli.run(Cli.java:78)
at io.dropwizard.Application.run(Application.java:93)
at com.graphhopper.http.GraphHopperApplication.main(GraphHopperApplication.java:36)
Pls help me
Activity
[-]hello Graphhopper team[/-][+]problem from GTFS[/+]karussell commentedon Mar 30, 2020
Ah, this is ugly. Thanks for reporting. There seems to be multiple issues. One is like #1921.
Can you try the following command:
java -Xmx8g -Xms8g -jar web/target/graphhopper-web-*.jar server config.yml
With the following config.yml:
TODOs:
profiles: []?karussell commentedon Mar 30, 2020
The best idea is always to use the latest stable release 0.13 plus its documentation: https://github.com/graphhopper/graphhopper/tree/0.13/reader-gtfs (make sure you switch to the 0.13 git branch and run
./graphhopper.sh cleanbefore)easbar commentedon Mar 30, 2020
And better remove the
graph-cachefolder as well[-]problem from GTFS[/-][+]problem for GTFS[/+]michaz commentedon Apr 7, 2020
Fixed by 07009b0
I think the answer was in the code comment already: We shouldn't require a profile. At least not when using transit.
Transit just isn't included in the profiles concept so far. In the current state,
ptisn't a profile, and it doesn't use profiles. It can route (internally) viafootbecausefootis aFlagEncoder, not because it is a profile.As long as FlagEncoders still exist as something in the config, we shouldn't pretend we need a profile when we really don't.
I see that
ptwill have something to do with profiles soon, but at the moment it is less wrong if we don't require a profile to be there.I removed the validation exception that requires a profile to be there for now. The router will know when it tries to find a profile in the empty list.
michaz commentedon Apr 7, 2020
Oh, and the README was wrong. Pt isn't a flag encoder. That was loooong ago..
karussell commentedon May 25, 2020
The quickstart still needs a change (see discussion):
gtfs.file: ""(we can do that change permanently)karussell commentedon May 25, 2020
Or is there a way we can overwrite it via a command line argument? Like
-Ddw.graphhopper.profiles=[]? The only ugly workaround I found so far is to replace vehicle=car with foot viawithout editing the config.yml.
add gtfs.file to config-example.yml, #1973
michaz commentedon May 26, 2020
Let's provide an example config for transit.
(I don't want to immediately teach new users patching parameters on the command line as the normal thing to do. The normal thing to do is write a config.)
cartogreaves commentedon Jun 1, 2020
Hi, wondering what the progress is with the GTFS reader support in V1.0.0.
Is there any further documentation that addresses the bugs above? Is the plan to integrate this as a routing profile, so that it can be used much like any other mode of transport? Any info would be great.
michaz commentedon Jun 2, 2020
Updated the README