Can I make a relation of 2 segments of the same street?

I have a street with 2 segments. I don’t want to join them, as they have different tags. But i want to make a relation to link both to wikidata and commons. Is this correct, or not advised ?

That question was hotly debated in this forum last year, see the below thread:

Personally I add Wikidata tags to each segment even if it sometimes means adding the tag to 20+ segments. But it’s easy to change that if there’s ever a community consensus.

1 Like

| Jota_Cartas
October 28 |

  • | - |

I have a street with 2 segments. I don’t want to join them, as they have different tags. But i want to make a relation to link both to wikidata and commons. Is this correct, or not advised ?

yes, some people are already doing it, see e.g.

https://taginfo.openstreetmap.org/tags/type=associatedStreet#combinations

https://taginfo.openstreetmap.org/tags/type=street#combinations

1 Like

The tricky thing is that both relation types, as currently documented, aren’t just for segments of a street. Instead, they’re designed to be crutches for a geocoder, including anything that “belongs” to the street.

I would be a happy camper if type=street would evolve to only include highway=* ways (what currently requires the street role) and ignore addressing and other spatial considerations, akin to type=bridge and type=tunnel. That would also help solve a thorny problem we have in OpenHistoricalMap around modeling streets that evolve over time.

1 Like

As you may see, I am just arrived in OSM, and may ask some “stupid” questions, thanks

1 Like

There’s no stupid questions, and this is actually a great question, just not one that we have a great answer for yet. I also tag each individual way with a Wikidata QID, though it becomes tedious quickly. I don’t think anyone would have a problem with you experimenting with one of these relation types at a small scale.

3 Likes

I am not sure this would be an issue in the context of adding a wikidata id to an OSM object, for one wikidata objects are just related, there is not a 1:1 relation between OSM and wikidata objects (unless you construct it like this, but due to the dynamic nature of both projects, it will not be “stable”), and secondly it is not clear if “anything that belongs to a street” isn’t the case for wikidata as well.

Me too, generally, I do not adjust OSM to fit better with wikidata, if a wikidata item in OSM is represented by several objects, I simply add the tag to all of them.
Creating a relation just because you want to avoid having the wikidata tag several times could be seen as violating the relations are not categories principle. For situations where relations are not required, they should not be used, keep it simple.