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
Similar to #1248, a type=street relation represents a street or highway. It identifies the physical infrastructure but doesn’t represent the physical infrastructure per se and isn’t relevant to routing. Unlike in OSM, a street relation has nothing to do with addressing. Unlike route relations, concurrencies within a given time period are unlikely and probably illogical, but a way may be a member of multiple type=street relations over time.
The tiles should conflate these relations with the member ways to form new linestring features in the transport_lines layer, replacing the member ways’ linestring features. Properties like name would come from the way, falling back to the relation. If the way is a member of multiple relations in different time periods, there would be multiple linestring features. This will allow stylesheets to continue to render streets based on transport_lines without having to consider the interaction between ways and relations.
Street relations are being used as an alternative to multilinestring relations. In principle, a street relation can coexist with route relations, but it probably shouldn’t coexist with multilinestring relations just for everyone’s sanity.
In #94, we had the tile generator expose associatedStreet relation type for a similar purpose, but nothing ever used it, so we eventually removed this support in #1077.
My understanding is that this would produce three features in transport_lines, one per type=street relation where the way is a member, using the way’s geometry and tags as the base, and then adding street‑level attributes from the relation.
Feature 1: Way + Rel 1
highway=unclassified
name=Canal Street
old_name=Fox Street
start_date=1797
street_name=Sheridan Avenue
street_start_date=1900
street_type=street
Feature 2: Way + Rel 2
highway=unclassified
name=Canal Street
old_name=Fox Street
start_date=1797
street_name=Canal Street
street_start_date=1828
street_end_date=1900
street_type=street
Feature 3: Way + Rel 3
highway=unclassified
name=Canal Street
old_name=Fox Street
start_date=1797
street_name=Fox Street
street_start_date=1797
street_end_date=1828
street_surface=unpaved
street_type=street
In all three cases, the geometry and primary road tags come from the way, while the street_* fields are derived from the corresponding type=street relation. Is this correct understanding to implement?
These 16 street relations don’t conflict with any member ways’ names. But all of them have matching name=* on the roadways, probably because the mapper didn’t want to see them go unlabeled in the Historical style. None of them contains all unnamed ways. So the implementation would also have no effect on these features.
This highway=residential way belongs to three different street relations in different time periods. The transport_lines layer should have three overlapping LineString features with similar properties except for start_date, end_date, and name. These three properties would come from the street relations.
This highway=primary way belongs to an unnamed street relation in one time period and Wagon Road Trail in another time period. The transport_lines layer should have two overlapping LineString features with similar properties except for start_date, end_date, and name. The street relations are also tagged with conflicting highway=* tags. I’d leave highway=* out of scope for now. The community needs to discuss what to do about primary feature tags that change over time. One approach to that issue is multilinestring relations, which the tile generator already supports.
If there’s any time period in which the roadway exists but it isn’t part of any street relation, then the properties would come from the way alone. Unlike what we did in #1090 for route relations, I don’t think we need to worry about separate street_name=* or street_1_name=* properties yet, because concurrencies are much rarer.
That’s fine, but there probably still needs to be a transport_lines feature corresponding to the period during which the street existed alone without a street relation. Oak Street did exist between 1915 and 1984, just not as part of a bigger street relation.
For Oak Street, there should be one feature for 1915–1984 corresponding to the time period when there was no street relation, then another for 1984–present based on the street relation. There shouldn’t be any overlapping time periods, because that would cause unpredictable behavior in the stylesheet. It’s similar to what we do when a roadway is part of a route relation but the route only exists during part of that roadway’s existence.
Regarding way 201849710 and relation 2891096: I split both the relation and the way so that they appear without any date overlaps.
Currently, this emits two separate line features in the tiles. However, both look identical, which unnecessarily increases the tile size. It seems it should only display one feature. To optimize tile size, if the attributes are identical, the script should only consider the one with the oldest date. In cases where the attributes differ (such as name, highway, ref, access, service, ford, electrified, highspeed, usage, railway, aeroway, route, tunnel, bridge, or oneway), a separate way should be considered to display those specific attributes.
Good point, I hadn’t considered that the attributes would be identical anyways. We should be good to go as long as roadway attributes aren’t getting overridden with different values from street relations, or if they are, as long as the roadway’s value appears somewhere in a different feature with a different time period. 👍
Activity
Rub21 commentedon Feb 3, 2026
I used this query to filter these cases in the db:
I found some way that belong to relation
type=street. eg:Way: https://www.openhistoricalmap.org/way/198307560
Way tags:
highway=unclassifiedname=Canal Streetold_name=Fox Streetstart_date=1797Relations:
Rel 1 – https://www.openhistoricalmap.org/relation/2690127
name=Sheridan Avenuestart_date=1900type=streetRel 2 – https://www.openhistoricalmap.org/relation/2690125
name=Canal Streetstart_date=1828end_date=1900type=streetRel 3 – https://www.openhistoricalmap.org/relation/2690126
name=Fox Streetstart_date=1797end_date=1828surface=unpavedtype=streetMy understanding is that this would produce three features in
transport_lines, one pertype=streetrelation where the way is a member, using the way’s geometry and tags as the base, and then adding street‑level attributes from the relation.Feature 1: Way + Rel 1
highway=unclassifiedname=Canal Streetold_name=Fox Streetstart_date=1797street_name=Sheridan Avenuestreet_start_date=1900street_type=streetFeature 2: Way + Rel 2
highway=unclassifiedname=Canal Streetold_name=Fox Streetstart_date=1797street_name=Canal Streetstreet_start_date=1828street_end_date=1900street_type=streetFeature 3: Way + Rel 3
highway=unclassifiedname=Canal Streetold_name=Fox Streetstart_date=1797street_name=Fox Streetstreet_start_date=1797street_end_date=1828street_surface=unpavedstreet_type=streetIn all three cases, the geometry and primary road tags come from the way, while the
street_*fields are derived from the correspondingtype=streetrelation. Is this correct understanding to implement?1ec5 commentedon Feb 3, 2026
That isn’t a great example unfortunately. https://www.openhistoricalmap.org/way/198307560 shouldn’t have any
name=*on it because it’s a member of three different street relations with different names. The implementation of this feature request would skip over the way because it’s already named, no need to backfill anything from the street relation.These 16 street relations don’t conflict with any member ways’ names. But all of them have matching
name=*on the roadways, probably because the mapper didn’t want to see them go unlabeled in the Historical style. None of them contains all unnamed ways. So the implementation would also have no effect on these features.These 462 street relations contain some unnamed member ways. For example:
highway=residentialway belongs to three different street relations in different time periods. Thetransport_lineslayer should have three overlapping LineString features with similar properties except forstart_date,end_date, andname. These three properties would come from the street relations.highway=primaryway belongs to an unnamed street relation in one time period and Wagon Road Trail in another time period. Thetransport_lineslayer should have two overlapping LineString features with similar properties except forstart_date,end_date, andname. The street relations are also tagged with conflictinghighway=*tags. I’d leavehighway=*out of scope for now. The community needs to discuss what to do about primary feature tags that change over time. One approach to that issue is multilinestring relations, which the tile generator already supports.If there’s any time period in which the roadway exists but it isn’t part of any street relation, then the properties would come from the way alone. Unlike what we did in #1090 for route relations, I don’t think we need to worry about separate
street_name=*orstreet_1_name=*properties yet, because concurrencies are much rarer.Rub21 commentedon Feb 23, 2026
Here is the results, currently deployed in staging:
start_dateResults

https://vtiles.ohmstaging.org/#15.89/45.519219/-122.99035
- https://www.openhistoricalmap.org/relation/2690127
- https://www.openhistoricalmap.org/relation/2690125
- https://www.openhistoricalmap.org/relation/2690126
The results , the relations overwrites the attributes and generates 3 lines for each relation.

https://vtiles.ohmstaging.org/#17.37/42.654202/-73.752828
Comparing with production that only show one way. https://vtiles.openhistoricalmap.org/#17.27/42.654353/-73.751684
1ec5 commentedon Feb 23, 2026
That’s fine, but there probably still needs to be a
transport_linesfeature corresponding to the period during which the street existed alone without a street relation. Oak Street did exist between 1915 and 1984, just not as part of a bigger street relation.Rub21 commentedon Feb 23, 2026
Great, I’ve included the existing way on its own. Now, https://www.openhistoricalmap.org/way/201849710 shows four lines: one from the way itself and three from the relations it belongs to.
https://tiler-compare.openhistoricalmap.org/check-properties/index.html?id=198307560&env=staging#16.97/42.654531/-73.753679

1ec5 commentedon Feb 23, 2026
For Oak Street, there should be one feature for 1915–1984 corresponding to the time period when there was no street relation, then another for 1984–present based on the street relation. There shouldn’t be any overlapping time periods, because that would cause unpredictable behavior in the stylesheet. It’s similar to what we do when a roadway is part of a route relation but the route only exists during part of that roadway’s existence.
Rub21 commentedon Feb 24, 2026
Regarding way 201849710 and relation 2891096: I split both the relation and the way so that they appear without any date overlaps.
Currently, this emits two separate line features in the tiles. However, both look identical, which unnecessarily increases the tile size. It seems it should only display one feature. To optimize tile size, if the attributes are identical, the script should only consider the one with the oldest date. In cases where the attributes differ (such as name, highway, ref, access, service, ford, electrified, highspeed, usage, railway, aeroway, route, tunnel, bridge, or oneway), a separate way should be considered to display those specific attributes.
1ec5 commentedon Feb 24, 2026
Good point, I hadn’t considered that the attributes would be identical anyways. We should be good to go as long as roadway attributes aren’t getting overridden with different values from street relations, or if they are, as long as the roadway’s value appears somewhere in a different feature with a different time period. 👍