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: Country-specific speed limits · Issue #175 · graphhopper/graphhopper · GitHub and Support :backward and :forward direction restrictions · Issue #205 · graphhopper/graphhopper · GitHub

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