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

Implementation of ClickableWay for solitary ways (piste / dirtbike / mtb) #21714

Merged
merged 30 commits into from
Jan 22, 2025

Conversation

RZR-UA
Copy link
Contributor

@RZR-UA RZR-UA commented Jan 13, 2025

No description provided.

@RZR-UA
Copy link
Contributor Author

RZR-UA commented Jan 13, 2025

@RZR-UA RZR-UA force-pushed the rzr-select-way branch 2 times, most recently from 45fe60e to 625b96f Compare January 13, 2025 14:09
@RZR-UA RZR-UA requested a review from Chumva January 16, 2025 11:55
@RZR-UA RZR-UA changed the title [draft] Implementation of ClickableWay for solitary ways (piste / dirtbike / mtb) Implementation of ClickableWay for solitary ways (piste / dirtbike / mtb) Jan 16, 2025
@RZR-UA RZR-UA marked this pull request as ready for review January 16, 2025 11:55
Comment on lines +136 to +150
if (matcher == null || matcher.publish(obj)) {
if (deletedIds.contains(obj.id)) {
// live-updates, osmand_change=delete
continue;
}
if (obj.isRoadDeleted()) {
deletedIds.add(obj.id);
continue;
}
if (usedIds.containsKey(obj.id) && usedIds.get(obj.id) != obj.region) {
// live-update, changed tags
continue;
}
loaded += (results.put(obj.getId() >> SHIFT_ID, obj) == null) ? 1 : 0;
usedIds.put(obj.id, obj.region);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume there should be an easier way to search RouteDataObjects without additional checks

@Chumva Chumva merged commit 3c61f9f into master Jan 22, 2025
3 checks passed
@Chumva Chumva deleted the rzr-select-way branch January 22, 2025 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants