osrm-backend
                                
                                 osrm-backend copied to clipboard
                                
                                    osrm-backend copied to clipboard
                            
                            
                            
                        Easiest way, to provide max planned speed on API call and not in LUA / from OSM max speed
Hi,
I know this is not possible right now, so i want to know, if there is an easy way, to get this in somehow.
Sometimes people just want to drive slower, for example on an EV, to consume less energy and get a higher range. If you would reduce the speed from for example 130 to 100, motorways should not be the main preferred road anymore, as many primary roads (in Germany and many other countries) have the same speed limit, but are way shorter.
However as far as I understood, the speed limits which are provided by OSM and OSRM are already cooked into the map, while preparing it for running OSRM routing.
Is there still any way, to hack in a custom max speed, that could be considered while calculating the route? Same for avoid highways or custom weights requested on the API call.
I don't need a full solution, i can also do some things on my own, however I would need a good starting point to check this out myself.