Speed calculation

I got a question regarding graphhopper and the speed calculation :

1/ I see the CarFlagEncoder.java for instance that return speed regarding the street type, and so on (highway) but can not if you took the country into account (france highway different from us hihway, and so on). have you got reference for each country and where is the code.

2/ when you look at maxspeed:forward and maxspeed:backward, how do you choose the correct value between the two value according the direction the car go ?

thanks
David

See the issues: https://github.com/graphhopper/graphhopper/issues/175 and https://github.com/graphhopper/graphhopper/issues/205

how do you choose the correct value between the two value according the direction the car go

you would need to store two speeds like done in Bike2WeightFlagEncoder