graphhopper: Can't recreate car4wd in version 6 which will ignore fords and pass through grade 5 highways

Describe the bug Car4wd was remove, I saw the example of how to recreate it in latest version, but I can’t find a way make the block_fords to be “disabled”, I’m not sure if this is a bug or misconfiguration, but I can’t find a way to make it work no matter what I try…

To Reproduce

In version 6.x use the following configuration file: https://github.com/IsraelHikingMap/Site/blob/87fdd540301dda8fb869edbcd0a4ebe49ae46c52/gh-config.yml TL;DR:

 profiles:
    - name: car4wd
      vehicle: roads
      weighting: custom
      custom_model:
        distance_influence: 1
        speed:
          - if: "track_type == GRADE4 || track_type == GRADE5"
            limit_to: 5
          - else: ""
            limit_to: "car_average_speed"
        priority:
          - if: "track_type != GRADE4 && track_type != GRADE5 && car_access == false"
            multiply_by: "0"
          - if: "road_class == TRACK"
            multiply_by: "20"
...
  graph.flag_encoders: car|block_fords=false|block_barriers=false,hike|block_fords=false,mtb|block_fords=false|block_barriers=false
  graph.encoded_values: road_class,road_class_link,road_environment,max_speed,road_access,track_type,surface

I can’t make car4wd pass through fords, I tried to add roads|block_fords=false to the graph.flag_encoders and it didn’t help. For example here (this doesn’t reproduce in your site since it’s not the same profile but you can test this location): https://graphhopper.com/maps/?point=30.365441%2C35.147625&point=30.366071%2C35.146402&profile=car&layer=Omniscale

Steps to reproduce the behavior. For examples:

  1. Use version 6.2 from the docker image
  2. Use latest israel and palestine pbf
  3. include the config.yml you are using - see the link above
  4. run java -Ddw.graphhopper.datareader.file=your.osm.pbf -jar *.jar server config-example.yml

Expected behavior block_fords should be respected System Information block_fords is not respected

Provide version of Operating system, JVM and GraphHopper Whatever is in the following docker image: openjdk:11.0-jre - linux, JRE 11 basically.

Screenshots & Logs

This is from my site: image

Let me know if you need more info, I’ll be happy to provide…

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (19 by maintainers)

Commits related to this issue

Most upvoted comments

No, just the ability to receive the current behavior of the hike, bike, and 4wd profiles we have right now in the latest version. I’ll download and run the latest version and see if I get the expected results after setting up everything. It might take a while to get everything right as there are probably some additional configuration that have changed, but once I get it to work I’ll report it here. If you prefer that I discuss this somewhere else, please let me know, sorry for spamming this thread.