You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Need a solution for removing dates in auto-generated labels #793
What's your idea for a cool feature that would help you use OHM better.
our uh-mazing new auto-generated centroids labels grab their label text from the relation name=* tag, which often includes a year range, which is undesirable in labels.
@1ec5 feels we should remove the year labels from the relation names, but I'm not sure. This approach would require a lot of editing updates, etc., and possibly confuse search results, as well as editors who use JOSM, etc., etc.
Perhaps a faster approach that wouldn't imply a lot of work would be to filter off dates at the end of names? We'd need to filter out both dates in parentheses like "(1900-1910)" as well as those without like "53-250". Negative dates, dates that might have more than years are other edge cases, but I'm hoping a regex guru could help figure out those cases.
It is possible to strip out dates from names in postprocessing, if we’re OK with false positives that mappers can’t correct. This also gets tricky because of CJK date formats and such, but I suppose it could be the job of a robust regular expression.
@1ec5 feels we should remove the year labels from the relation names, but I'm not sure. This approach would require a lot of editing updates, etc., and possibly confuse search results, as well as editors who use JOSM, etc., etc.
Yes, I would prefer this approach. To the contrary, I suspect these hard-coded dates are already breaking Nominatim and that removing them would help: #454#693#739 (comment).
Cleaning up the names would be a one-time operation, more or less. We have a documented workaround for JOSM, though a better default would be ideal. The website does need to be updated to recognize start_date and end_date; I think that change would be relatively straightforward: #431.
So, should we do this for now & follow up with your suggestions later or wait? I'd prefer to go now, but I also don't have a problem with years in the labels, although others don't like it so much. Maybe the irritant of the years in the labels would fuel the other fixes. The one that I'm most worried about is mucking with adding them back in the left-nav display, but that may be unfounded.
The one that I'm most worried about is mucking with adding them back in the left-nav display, but that may be unfounded.
That’s #431. Fingers crossed, that should be much less of a hurdle than autogenerating centroids. I’d’ve done it myself by now, but I don’t have an ohm-website development environment set up yet.
OpenHistoricalMap/ohm-website#277 will automatically annotate elements with their date ranges. This leaves only JOSM as the main outstanding place where mappers will encounter element labels without automatic date ranges.
Date labels now appear on the website, so all that’s left is JOSM: #1003. Now that date labels are supported in the most prominent places, we shouldn’t remove date suffixes on the fly, because that would promote confusing duplication everywhere other than JOSM. I’m closing this issue because there’s nothing left to do on the technical side, but an important next step will be to start a campaign to delete unnecessary place points.
Activity
1ec5 commentedon May 24, 2024
It is possible to strip out dates from names in postprocessing, if we’re OK with false positives that mappers can’t correct. This also gets tricky because of CJK date formats and such, but I suppose it could be the job of a robust regular expression.
Yes, I would prefer this approach. To the contrary, I suspect these hard-coded dates are already breaking Nominatim and that removing them would help: #454 #693 #739 (comment).
Cleaning up the names would be a one-time operation, more or less. We have a documented workaround for JOSM, though a better default would be ideal. The website does need to be updated to recognize
start_dateandend_date; I think that change would be relatively straightforward: #431.jeffreyameyer commentedon May 24, 2024
So, should we do this for now & follow up with your suggestions later or wait? I'd prefer to go now, but I also don't have a problem with years in the labels, although others don't like it so much. Maybe the irritant of the years in the labels would fuel the other fixes. The one that I'm most worried about is mucking with adding them back in the left-nav display, but that may be unfounded.
1ec5 commentedon May 28, 2024
That’s #431. Fingers crossed, that should be much less of a hurdle than autogenerating centroids. I’d’ve done it myself by now, but I don’t have an ohm-website development environment set up yet.
1ec5 commentedon Mar 14, 2025
OpenHistoricalMap/ohm-website#277 will automatically annotate elements with their date ranges. This leaves only JOSM as the main outstanding place where mappers will encounter element labels without automatic date ranges.
1ec5 commentedon Mar 27, 2025
Date labels now appear on the website, so all that’s left is JOSM: #1003. Now that date labels are supported in the most prominent places, we shouldn’t remove date suffixes on the fly, because that would promote confusing duplication everywhere other than JOSM. I’m closing this issue because there’s nothing left to do on the technical side, but an important next step will be to start a campaign to delete unnecessary place points.