Hello, I am currently developing an app for route planning for motorcycles.
My problem is that I get a route calculation, but it is much too fast for motorcycles. The altitude data is read, but later deleted from the srtm folder. The times are more realistic for a car that always drives on the highway. It always directs me to the highway, even when I set the app to winding or very winding. My config.yml currently looks like this.
The goal is to make the times more realistic and for it to also show me tunnels, passes, etc., and the elevation should also be included.
The biggest problem, however, is that it always takes me on the highway, even if I avoid it in the app.
Translated with DeepL.com (free version)
graphhopper:
datareader.file: data/tour-europe.osm.pbf
graph.location: data/graph-cache
import.osm.ignored_highways: footway,cycleway,path,pedestrian,steps,bridleway
graph.encoded_values: road_access,surface,toll,track_type,road_class,road_environment,max_speed
graph.elevation.enabled: true
graph.elevation.provider: srtm
graph.elevation.cache_dir: data/srtm/
profiles:
- name: motorcycle
profile: motorcycle
weighting: custom
custom_model:
speed: [{ "if": "true", "limit_to": 95 }]
priority: [{ "if": "road_class == MOTORWAY", "multiply_by": 0.1 }]
profiles_ch: []
profiles_lm: [ { profile: motorcycle } ]
prepare.lm.threads: 16
server:
application_connectors:
- type: http
port: 8989
bind_host: 0.0.0.0
It would be great if someone could help me with this.
Best regards,
Peter