Skip to content

New layer type=route #440

Closed
Closed

Description

@flha127

Related thread : #436

To create a renderer for public transport, I would like to request the creation of a new layer to support type=route objects.

Activity

  1. self-assigned this
    on Sep 12, 2022
  2. jeffreyameyer commented on Feb 28, 2024

    @jeffreyameyer
    Member

    @flha127 - you're suggesting a vector tile layer & not a layer like these, correct?

    Monosnap OpenHistoricalMap 2024-02-28 11-16-30
  3. 1ec5 commented on Mar 12, 2024

    @1ec5
    Member

    Should there be a separate layer specifically for routes, or should the attributes from the route relation be copied onto the features corresponding to the member ways, as requested in #705? A separate layer could facilitate certain style treatments, such as a highlighter-like translucent overlay (as seen on CyclOSM and OpenCycleMap) or labels and shields (as seen on OSM Americana). On the other hand, #439 expresses a desire to shift as many tags as possible from the member ways to multilinestring relations and presumably route relations, implying completely separate features in the tiles, similar to the bloat we currently see with boundaries (#701).

    I rather like OpenMapTiles’ approach of a separate layer for labels and shields that can draw from either the member ways or the route relations. This layer can also serve the highlighter use case more or less well. openmaptiles/openmaptiles#1620 recently landed in OpenMapTiles, creating an extensible schema for many-to-one relationships with member ways. A road that carries multiple routes results in a LineString feature with properties including route_1:ref, route_1:network, route_2:ref, etc.

  4. flha127 commented on Mar 12, 2024

    @flha127
    Author

    @flha127 - you're suggesting a vector tile layer & not a layer like these, correct?

    Yes.

  5. moved this to Data/dev work required first in OHM Cartoon Apr 11, 2024
  6. added theissue type on Mar 16, 2025
  7. jeffreyameyer commented on Nov 1, 2025

    @jeffreyameyer
    Member

    @flha127 - does our current route_lines vector tile layer meet your needs here? Did you have any additional thoughts about @1ec5's questions?

    @1ec5 - are we on track to have a setup like you mentioned? (I think so, but wanted to double-check)

  8. flha127 commented on Nov 3, 2025

    @flha127
    Author

    @flha127 - does our current route_lines vector tile layer meet your needs here? Did you have any additional thoughts about @1ec5's questions?

    @1ec5 - are we on track to have a setup like you mentioned? (I think so, but wanted to double-check)

    Hi,

    It was however since a few weeks the type=bus/tram/trolleybus and class=route have disappeared and were replaced with a weird "route_tram_1_name"/"route_tram_1_ref" tagging scheme.

  9. 1ec5 commented on Nov 3, 2025

    @1ec5
    Member

    Yes, the new properties are in support of rendering routes that traverse physical infrastructure, especially routes that share the same infrastructure concurrently during the same time period. Instead of multiple overlapping line features, you get a single line feature that explicitly indicates the overlap, which MapLibre can then symbolize more reliably. This highlights the fact that route relations aren’t a replacement for physical infrastructure (other than maybe route=railway if we accept that OSM tagging scheme).

  10. 1ec5 commented on Dec 30, 2025

    @1ec5
    Member

    The new route_*_#_* properties are stable and consistent with OpenMapTiles (and soon Shortbread). If for example you only care about tram routes and don’t want to worry about concurrencies, your stylesheet can hardcode route_tram_1_network and route_tram_1_ref. #538 tracks another stylesheet that’ll depend on this scheme. Please open another issue if you see a detail that needs adjusting.

    other than maybe route=railway if we accept that OSM tagging scheme

    #1248

  11. moved this from Todo - Known Path to Ready for Staging in OpenHistoricalMap Dev Planningon Dec 30, 2025
  12. flha127 commented on Jan 20, 2026

    @flha127
    Author

    Hello @1ec5 ,
    I didn't see the reply in November; it's fantastic and solves a major problem.

    Chapeau bas !

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions