I got Graphhopper Open Source (https://github.com/graphhopper/graphhopper) working on my server, which works fine with car selected as vehicle. My setup is aimed at motorcycles, not bikes or cars.
I’ve encountered a few problems:
When adding “Scooter” it states: {“message”:“Vehicle not supported: scooter. Supported are: car”,“hints”:[{“message”:“Vehicle not supported: scooter. Supported are: car”,“details”:“java.lang.IllegalArgumentException”}]}
If possible i would like to avoid highways and toll roads, to do so i could ‘ch.disable=true’ option combined with ‘avoid=motorway;toll’ but that option slows the server time down severly.
Question
How can i make scooter function properly and avoid highways and toll roads without getting a slow server response?
No worries. I’d also check to see if you already have a [country]-gh directory, which holds the cached graph data. If you ran it originally with the car encoder set, and then restarted it with motorcycle, then it won’t have rebuilt the graphs (if my memory serves me correctly anyway - this tripped me up before - but it’s been a long time since I deployed it afresh). I’d take a look in that directory and consider stopping graphhopper, deleting the [country]-gh directory, and then restarting it.
I’d also double check that scooter is defined in DefaultFlagEncoderFactory.java and you’ve fully rebuilt GH.