I use POST-Data request to get the route using JSON objects and use custom model parameter in my JSON object to weigh certain areas which is essential for me. This custom model can be used only when I set "ch.disable":"true"
. It seems that "ch.disable":"true"
activates a flexible mode, is it then possible to use custom model without using the flexible mode?
You can either use a custom model with "ch.disable": true
or create a custom profile (with a custom model) using the Profile API and then you can avoid "ch.disable":true
in the request or even use the custom profile in the Matrix or Route Optimization API.
would creating a custom profile use a flexible mode? Because I can’t use this feature now
You’ll need a paid package to create a custom profile or use the flexible mode in the GraphHopper Directions API.