Hi all,
I’m creating a custom routing profile and I would like to consider the tag
“incline” that assume a positive or a negative value (15% or -15%), I created a
parameter “max_incline” that should not consider the streets that have an
inclination lower than the negative value of “max_incline” or over the value of
“max_incline”. In others programming code I will use the absolute value to
consider the positive and the negative values. It is possible to have a similar
approach?
For now I was able to solve the issue asking to the user to select the
“max_incline” value twice, one time assigning a negative value and the second
time a positive value and after to insert this:
<way attribute="access”>
<gt value1=":incline_max_neg" value2="$incline”>
<select value="-1" t="incline”/>
</gt>
<gt value1="$incline" value2=":incline_max”>
<select value="-1" t="incline”/>
</gt>
</way>
Thanks for your attention.
Best,
Lorenzo Stucchi
--
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/C0AF57A6-979D-4AD7-92DC-4E897A257FA6%40outlook.it.