Skip to content

Routes not being added properly in Vtiles #1369

Closed

Description

@flha127

Parts of the 551 bus route (1954) keep showing up as early as 1931, this seems to be the case with some linestrings when they are used by a public transport, then no route run through them and then again one does.

1932

Image

1937

Image

1955

Image

Activity

  1. 1ec5 commented on May 20, 2026

    @1ec5
    Member

    Possibly the same root cause as what remains of #1362.

  2. Rub21 commented on Jul 6, 2026

    @Rub21
    Member

    The routes were rendering at the wrong dates because of invalid dates in the data, not a problem with the routes themselves. Two examples here:

    https://www.openhistoricalmap.org/relation/2835893 (route 551): start_date=1954-09-31 — September has 30 days, so that date doesn't exist.
    https://www.openhistoricalmap.org/relation/2660797 (route 32): end_date=uncertain — that's a word, not a date.
    When a date can't be parsed, the decdate ends up NULL, and a NULL date is read as unbounded, so the route shows across all of time. That's why the 551 appeared as early as 1931.

    I fixed it with a fail-safe in the route materialized view: if a date is present but doesn't parse, we drop that row instead of letting it render forever. Empty dates still keep their normal unbounded meaning, so open-ended routes are fine. Only the broken ones get hidden, until the data is fixed in OSM.

    here a list of wrong dates in relations https://gist.github.com/Rub21/f815145e24a7782918780bfaa17da7b0

    Fixes currently in staging.https://vtiles.ohmstaging.org/#2/20/0

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions