Hi All,
I finally fixed one issue (very suspicious) I never met it before till now but anyway it could be helpful one day :) I hope I didn't introduce more issues...
So according to my last tests the main problem was one of the "heuristics" - dynamic road prioritizing.
It causes at the end of roads very weird endings/ U-turns ... Especially on long distances!
So I disable it however it causes more memory consumption at the end, according to my measurements +50%.
1. Double road processing issue fixed. (never see real route problem)
2. Dynamic road prioritizing (temporary) disabled.
3. Routing tests introduced ! :) Finally.
All people who gathered xml's now can compare and enjoy automated testing :)
XML tests can be gathered in one file or in multiple here is the example :
To run Tests .sh/.bat file is introduced (in latest OsmandMapCreator) :
It takes multiple routing_xml absolute paths as parameters, all other parameters should be specified in MapCreator (!) like where to get '*.obf' files and where 'routing.xml' exists.
How it works :
It takes best_percent correlation (I setup to 5) and tries to compare 4 critical for routing metrics and check if they are in best_percent interval.
complete_time="7332.0825" loadedTiles = "165" visitedSegments = "1783" complete_distance = "207917.34"
I know it is very limited solution but let me know what improvements could be done there :)
Keep collecting these "good" as you think roads with good coefficients, I think we will include all them in Continuous Integration Jenkins job.
Best Regards,
Victor