Skip to content

Need a solution for removing dates in auto-generated labels #793

Closed as not planned
Closed as not planned

Description

@jeffreyameyer

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.

Monosnap pallars | OpenHistoricalMap 2024-05-24 14-14-03

@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.

Activity

  1. 1ec5 commented on May 24, 2024

    @1ec5
    Member

    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.

  2. jeffreyameyer commented on May 24, 2024

    @jeffreyameyer
    MemberAuthor

    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.

  3. 1ec5 commented on May 28, 2024

    @1ec5
    Member

    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.

  4. 1ec5 commented on Mar 14, 2025

    @1ec5
    Member

    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.

  5. added theissue type on Mar 16, 2025
  6. 1ec5 commented on Mar 27, 2025

    @1ec5
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions