Hi,
Regarding your first question:
Speed calculation in MoNav is as follows:
1. Determine "Max Speed":
- if given in the map use that one, but limit to maxSpeed ( e.g.
Pedestrian could be limited to 6kmh )
- otherwise derive from road type and "in-city" flag, either
defaultCitySpeed or maxSpeed
2. Compute average speed as percentage of "Max Speed", depending on road type
3. Apply modifiers
So in your case, you would use the max_speed from the map ( it is
smaller than 1000 ), but compute the average speed as 1000% of the max
speed, since it is given in percents.
Could you try setting averageSpeed to 100 ( or leave it on the default
values ) if you want to test whether your speeds are used?
Also, the maxspeed tag needs to be well formed, i.e., it needs to be a
floating point number followed by one of the following strings:
"kmh"
" kmh"
"km/h"
" km/h"
"kph"
" kph"
"mph"
" mph"
"" -> will be mapped to kmh
Regarding the second question:
The priority is only used to calculate turn costs, e.g. if you cross a
road of lower priority it will take longer.
The routing algorithm itself doesn't try to "cheat", by preferring
higher priority roads even if they are slower ( typical A* in
commercial application will do that, gives you a speed boost but not
the optimal result ), since it is capable of computing the optimal
route without any performance loss.
You could say, that MoNav optimizes for time ( length / average speed
+ turn cost ) only, so you will always get the fastest route possible.
I hope that answers your questions *G*
Best regards,
Christian Vetter