As the column 'kmh' shows speed limits wrong for my city, and I didn't want to modify the configuration file of osm2po for each type of road, is there a way to change the cost function? I wish:
As you tagged your question with
And if you prefer the length in unit meter, then you can transform the geometry into some Mercator projection:
and don't forget to set the reverse_cost if needed.