Well,

please find attached one that should come as close as possible to what you
want.
Import it as new profile or copy it inside
"Android/data/net.osmand.plus/files/routing" or
"Android/data/net.osmand/files/routing". Completely exit OsmAnd and start
creating/modifying a profile.
Note: This one can (!) lead you to unpaved paths that are absolutely
unsuitable for any car, even the best 4-wheel drives (ice roads in summer?).
As it is based on the normal car profile, it will prevent you from driving
into one-way streets, streets with blockades, or other
limitations/restrictions you have to (legally) follow up.
Experiment further.

Op zo 25 sep. 2022 om 15:24 schreef Harry van der Wolf <[email protected]>:

> This has to do with the penalty values for lower order roads and the
> priority values for the several road types in the routing.xml
> No highways means that it will still try to find the highest priority
> roads except highways,
> "do not avoid" is something else than "prefer" (unpaved roads).
> If you create your own (renamed) routing.xml (the default routing.xml
> contains multiple profiles) and upload that in your own OsmAnd, you can
> completely destroy the smart optimized way-find algorithm and it will then
> simply use any road that gives your the shortest distance.
> You could copy the "auto profile" and remove the rest and renamed to
> "myshortestway.xml" and do not forget to rename the profile name itself.
>
> Start with reading https://osmand.net/docs/user/personal/profiles/
> Also search in the blogs and technical articles on osmand.net
> Then download the routing.xml (
> https://github.com/osmandapp/OsmAnd-resources/blob/master/routing/routing.xml)
> and see if you are still interested in modifying that.
> Then search this mail thread. I once or twice wrote, at least a year ago,
> how I created them.
>
> Harry
>
> Op do 22 sep. 2022 om 19:38 schreef 'Ed f' via OsmAnd <
> [email protected]>:
>
>> but although I have set a profile with energy saving, no highways, do not
>> avoid unpaved roads, do not avoid 4wheel-tracks, allow even private roads -
>> osmand still does not always chose the small white roads I prefer when
>> cruising the landscape. is there any way to change that for the better?
>>
>> --
>> 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].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/osmand/941ca250-1b85-4dd9-942e-53aeb04a5a0an%40googlegroups.com
>> <https://groups.google.com/d/msgid/osmand/941ca250-1b85-4dd9-942e-53aeb04a5a0an%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osmand/CAGARPpth8c%3D9KMJqrAyWMLs6%2BgRK1eT%3Dy4m5dwTOGFQmrnQ6QA%40mail.gmail.com.
<?xml version="1.0" encoding="utf-8" ?>
<osmand_routing_config defaultProfile="car" name="default">
	<!-- 1. parameters of routing and different tweaks Influence on A* : -->
	<!-- f(x) + heuristicCoefficient*g(X) -->
	<!-- TEMPORARY needs to be reverted to 1 -->
	<attribute name="heuristicCoefficient" value="" />

	<!-- 1.1 tile load parameters (should not affect routing) -->
	<!-- by default 16 -->
	<attribute name="zoomToLoadTiles" value="16" />
	<!--  by default it is 30. Value specified here overwrites all others
			 (don't specify here ! it is device dependent)  -->
	<attribute name="memoryLimitInMB" value="" />
	<attribute name="nativeMemoryLimitInMB" value="" />

	<!-- 1.2 Build A* graph in backward/forward direction (can affect results) -->
	<!-- 0 - 2 ways, 1 - direct way, -1 - reverse way -->
	<attribute name="planRoadDirection" value="0" />

	<!-- 1.3 When there is a query to recalculate route, -->
	<!-- recalculate smart using old route within N-meters (0 recalculate fresh, default 10km)  -->
	<attribute name="recalculateDistanceHelp" value="10000" />


	<routingProfile name="shortestway" baseProfile="car" restrictionsAware="true" minSpeed="10.0" defaultSpeed="10.0" maxSpeed="10.0">
		<way attribute="access">
			<select value="1" t="highway" v="motorway"/>
			<select value="1" t="highway" v="motorway_link"/>
			<select value="1" t="highway" v="trunk"/>
			<select value="1" t="highway" v="trunk_link"/>
			<select value="1" t="highway" v="primary"/>
			<select value="1" t="highway" v="primary_link"/>
			<select value="1" t="highway" v="secondary"/>
			<select value="1" t="highway" v="secondary_link"/>
			<select value="1" t="highway" v="tertiary"/>
			<select value="1" t="highway" v="tertiary_link"/>
			<select value="1" t="highway" v="unclassified"/>
			<select value="1" t="highway" v="road"/>
			<select value="1" t="highway" v="residential"/>
			<select value="1" t="highway" v="track"/>
			<select value="1" t="highway" v="service"/>
			<select value="1" t="highway" v="living_street"/>
			<select value="1" t="highway" v="pedestrian"/>
			<!-- <select value="1" t="smoothness"/> -->
                        <!-- <select value="1" t="surface"/> -->
			<select value="-1"/>
		</way>
	</routingProfile>
</osmand_routing_config>

Reply via email to