I just implemented it for the latest version
To use this branch you need the following in the config (see the config-example.yml for a complete example):
- name: car
custom_model: # specify some custom model, the specific one here is just an example
To use the GH Maps UI you use the format like:
But you have to press Ctrl+Enter as the Search button won’t be enabled as the custom model is seen as invalid.
The turn detection is now done differently via an orientation change (and has certainly its problems) but in general this simple method works better and previously failing tests are now passing.
Still this is not yet production ready because it is unclear to me how to make the modeling more realistic, e.g. where the road_class and changes regarding road_class are also considered. Also regarding performance it is currently suboptimal that we have to use the getEdgeIteratorState.
The best would be to have access to the encoded values of the previous edge in the
speed section too but this was hard to achieve in the code and might be expensive regarding performance too.