OsmAnd 2.8.2 crashed. How do I get a routing.xml compatible with each version of OsmAnd? thx Kevin
On Saturday, November 24, 2018 at 2:52:17 AM UTC-5, Harry van der Wolf wrote: > > Hi, > > After reading this mail you might consider your end conclusion perhaps too > premature :) > > I have done these kind of things as well somehwere in the past 8 years > where I created for example a "main roads for europe". > I also created maps with all "car" roads also adding "=residential > =living_street". > So like "osmfilter -v <some_file.o5m> --keep="highway=motorway =trunk > =primary =secondary =tertiary =unclassified =road =residential > =living_street =*_link" > <something.o5m> > *(Note that I use the o5m format, not the osm format when possible. It is > binary and therefore smaller and faster)* > *(Note also that I was the writer > of > https://code.google.com/archive/p/osmand/wikis/CreateOfflineMapsForYourself.wiki > > <https://code.google.com/archive/p/osmand/wikis/CreateOfflineMapsForYourself.wiki> > in > 2010 or 2011. It should be updated though as OsmAndMapCreator changed a > little. I wrote more articles at that time about creating/altering/merging > maps*). > And then I started changing the routing.xml which is so much easier and > doesn't require you to create/change all those maps. > > > So after quite some experimenting, I moved away from creating the maps > myself and simply use the roads_only maps in my car. They do of course > contain all(!) roads and cycle/pedestrian paths and the like, but I don't > care. Note that I have full maps on my phone for hiking/walking and cycling. > In my car I have a full android head unit from Joying ( > https://www.joyingauto.com/), where I use OsmAnd with the road_only maps, > but I also use Magic Earth. *(Note also that next to Joying there is > another load of Chinese android head unit brands)* > > Like said: I use a different routing.xml. You can download it from here: > https://github.com/osmandapp/OsmAnd-resources/blob/master/routing/routing.xml > I changed line 381 ( > https://github.com/osmandapp/OsmAnd-resources/blob/master/routing/routing.xml#L381) > > to: > <routingProfile name="car" baseProfile="car" restrictionsAware="true" > minDefaultSpeed="45.0" maxDefaultSpeed="130.0" > leftTurn="5" rightTurn="5" roundaboutTurn="10" onewayAware="true" > heuristicCoefficient="1.4"> > > Now if you do this, the routing becomes aggressively faster. Doing this > makes the routing slighlty less exact, but on short distances (<25 km) that > leads to differences in seconds and who cares. One red traffic light or > busy cross roads and an alternative road is already a few seconds faster. > On long trips of >200 km it doesn't make a difference at all. This also > allows me to create routes of 1400-2000 km. > I experimented with a "heuristicCoefficient" of 1.2, 1.2, 1.3, 1.4 and > 1.5. I even tried some intermediate values. > I used 1.2 and then 1.3 for quite some time but eventually switched to > 1.4. Values of 1.5 become too sloppy and even higher values even become > erroneous, although you still get from A to B. > Note that the routing.xml also gets updated some times, so then you need > to download again and edit again. Place this routing.xml in your OsmAnd > files folder, so between your (normal) maps. > (My first mail about this already in Dec 2014: > https://groups.google.com/forum/#!msg/osmand/nypUdYCW3BI/WnULlAvYOh0J;context-place=topic/osmand/ZXX-nuBpQSc > ) > > > So, now with a heuristicCoefficient=1.4 and roads_only maps in my car I > have exactly what I want. Fast routing from start to end with POIs and > addresses. I do not need all those map details when navigating from A to B. > > Another benefit of using roads_only maps (in the car) is that the > rendering of the maps is much faster: a factor 2x to 3x. I also did > extensive testing on that over the past years and spend quite some mails on > that in the google group. > (You can test this yourself by enabling the OsmAmd development plugin (the > "bottom" one) and then switch on "rendering debug info". Of course that > takes performance as well so switch it off after you are done testing). > For walking and cycling using my phone I do use the full maps as I > like/want those details, but due to the low speeds, rendering performance > is never an issue. > > ===== > You mention the issue with highways going wrong on state sections. This is > an issue in OsmAnd. See > https://github.com/osmandapp/Osmand/issues/4013, and it was not solved > yet in 3.0.4. Don't know about the current 3.2.6 > So that might improve in (short?) time. > > Harry > >> >> -- You received this message because you are subscribed to the Google Groups "Osmand" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
