-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
No label / feature for post boxes #4916
Comments
Seems to be about |
Postbox preset is now split in parts: US, GB, entire world except this two. Thanks for noticing! |
So this is still an issue now? Was/ is this an issue with the data or an issue with the osmfeatures library? |
Currently for some reason, with correct OSM data, StreetComplete appears to be unable to get label for Maybe StreetComplete needs to provide extra info to osmfeatures library, maybe osmfeatures ignores entries with locationSet. By looking at https://github.com/search?q=repo%3Awestnordost%2Fosmfeatures%20locationSet&type=code - it seems that it should be supported? |
StreetComplete/app/src/main/java/de/westnordost/streetcomplete/util/NameAndLocationLabel.kt Lines 74 to 85 in bb5a344
returns null for amenity=post_box .But it works when providing a (any?) country using .inCountry(countryOrSubdivisionCode) .
Apparently this is because of |
That it doesn't work correctly in osmfeatures may have something to do with that finding features is done based on indices rather than rummaging through the whole and ever-growing list of presets (in particular, for NSI) - for performance reasons. Now, the indices are based on per-country-basis only for NSI features, not normal presets, because the assumption is that an OSM feature that can exist in one country can exist in another too. And this assumption is still true: Postboxes in the US are not something different from postboxes elsewhere. They are only a separate feature in the iD presets now to shoehorn an additional suggested field into the preset - whether it is drive-through or not. I'll create a ticket at the iD presets, hopefully the maintainers see the issue, too. In a nutshell: There should be suggested |
got response, it seems to be wontfixed |
I created an issue in osmfeatures. |
For clarification (there was confusion e.g. in #5572): This issue still persists and is still blocked by: |
This comment was marked as resolved.
This comment was marked as resolved.
…ion the element is contained in for finding the feature (#4916)
(works with iD presets 5.2.1)
Post boxes don't have a label (text below the question) any more, because the feature search returns nothing. This matters for the check existence quest, which requires a feature to be asked.
Search works when either using iD presets v5.2.1, or when searching by country (though results may obviously depend on country). Seems in iD presets 6.0.0 it's assumed post boxes are only a local thing for some reason...
Anyway, similar things might be happening for other features, just no one noticed. Maybe feature search should always specify a country?
The text was updated successfully, but these errors were encountered: