@Harry: You are right, there need to be several changes, also in OsmandMapcreator, although I think, the currently available OSM tags are sufficient to feed this new routing mode.
Above all, there needs to be a new calculation scheme with a new unit: the price.
The "fastest route" calculated road segments in seconds, the "shortest route" calculated the distance (all this apart from road restrictions of course), but the "economic route" should calculate in money units.
Just fantasizing a bit more (spontaneously, this is NOT a proposal!)
Every road segment has its price:
- the price base could be the length divided by maximum speed with a maximum value of 100km/h for fuel economy. So a road segment of 1000m with maxspeed=50 costs 20 units and 1000m with a maxspeed of 130 costs 10 units (not 7,69!).
So the length is the calculation variable, but the handicaps should be calculated first:
-- crossroads without priority rules add a length of 3 times the maximum speed to the road segment. So, a crossroad in a city with maxspeed=50 adds 150 meters to the road segment.
-- crossroads where you have right of way add a length of 1 time the maximum speed to the road segment. So, this crossroad in a city with maxspeed=50 adds 50 meters to the road segment.
-- crossroads where you have to yield add a length of 5 times the maximum speed to the road segment. So, this crossroad in a city with maxspeed=50 adds 250 meters to the road segment.
-- traffic lights add 10 times the maxspeed. (so in a city with maxspeed = 50, this adds 500 meters.
(this way, the routing engine would probably avoid city centres naturally, because of the sheer number of crossroads and traffic lights)
- Toll roads add a price: In my region (Western Europe) toll roads cost about 0,10 to 0,15 euro/km, so this would globally translate into 2 times the distance. A 50 km toll road costs 100 km.
- There are many more factors, which influence the calculation, like ferries, toll tunnels & bridges (expensive per km!), congestion charge, etc...
This is only a rough idea on how this routing mode could work, please share your own ideas!
Rodolfo