Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maxspeed:conditional @ wet / @snow always announced as the current speed limit #21426

Closed
vmicho opened this issue Nov 23, 2024 · 4 comments
Closed
Assignees
Labels
Milestone

Comments

@vmicho
Copy link

vmicho commented Nov 23, 2024

Description

Example way: https://www.openstreetmap.org/way/158074867
Here, osmand announced speed limit 80, while it is 130 (110 at night).
The road segment (quite long one) is marked additionally with maxspeed:conditional=110 @ (22:00-05:00); 80 @ wet; 80 @ snow (also marked with a roadsign)
Not sure is the wet or snow or both are interpreted. Anyway if Osmand doesn't know wet/snow conditional, it should better not interpret it at all.

Nice to have: perhaps an icon with wet / snow pictogram with maxspeed.
Note: could not reproduce right now (4.7 and 4.9). It looks like the 110 condition is right now in effect (it is 23h+ right now)

Steps to reproduce

drive through this segment: https://www.openstreetmap.org/way/158074867

e.g. osmand maps: https://osmand.net/map/navigate/?start=47.445174,9.723276&end=47.474229,9.739857&profile=car#13/47.4607/9.7079
(starting on bridge over Senderstrasse, the maxspeed changes to 80)

Actual result

starting on bridge over Senderstrasse (direction N), the maxspeed changes to 80

Expected result

should be still 130 (for car)

Your Environment (required)

WARNING Crash-Logs MAY contain information you deem sensitive.
Review this CAREFULLY before posting your issue!

OsmAnd Version: 4.9.7 + 4.8
Android/iOS version: android 13
Device model: xiaomi mi 11i
Crash-Logs: ---
@vshcherb vshcherb modified the milestones: next-backend, 4.9-backend Nov 24, 2024
@vshcherb
Copy link
Member

vshcherb commented Nov 24, 2024

To do

  • As we don't have weather information we should use ignore 'snow', 'wet' and other weather condtions (find by taginfo)
    c.hours = null (cause winter / wet is not parsed correctly) so it shouldn't be applied. By brief view it doesn't seem that bug is present in Java code, possibly in C++
	for (RouteTypeCondition c : conditions) {
					if (c.hours != null && c.hours.isOpenedForTime(i)) {
						return c.ruleid;
					}
				}

@RZR-UA
Copy link
Contributor

RZR-UA commented Nov 27, 2024

The bug has been found and fixed [4.9]. The C++ code was not synchronized with Java. Additionally, a better parsing for conditional tags is proposed [master].

@vshcherb
Copy link
Member

Will leave for future as we need to migrate these changes to IOS - have UI to support this.

@Zirochkabila
Copy link
Contributor

OsmAnd~ 5.0.0#3840m, Released: 2024-11-29 --- Done (AA too)
4.9.0.9 --- Should be fixed too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants