Reader gfts problem, please help me

Hi everyone,
I followed this

but doesn’t work.

the steps are:

  1. git clone

  2. cd graphhopper

  3. git checkout 1.0


5)wget brandenburg-latest.osm.pbf
6)./ build

  1. java -Xmx8g -Xms8g
    -jar web/target/graphhopper-web-*.jar server config.yml

the exception is java.lang.IllegalArgumentException: Unknown vehicle ‘car’ in profile: name=car|vehicle=car|weighting=fastest|turnCosts=false|hints={}. Make sure all vehicles used in ‘profiles’ exist in ‘graph.flag_encoders’
I understand this mistake. why doesn’t this example work?

I need just a simple example that show how i can use the public transit .

Ah, this is ugly and related to

In config.yml you need to:

  • remove the profiles section
  • remove the profiles_ch section
  • include gtfs.file like so:
        gtfs.file: ""

Thanks, now works.

1 Like