Skip to content

Maybe introduce ExtendedRelation, directly linking nodes and ways in osm model #215

Open
@sebastian-peter

Description

@sebastian-peter

This might be a different solution to the current implementation, that would be convenient and handle circular dependencies of relations well:

  final case class ExtendedRelation(
      id: Long,
      nodes: Set[Node],
      ways: Set[Way],
      relations: Set[Long],
      override val tags: Map[String, String],
      override val metaInformation: Option[MetaInformation]
  )

i.e. nodes and ways would be directly linked and relations indirectly via id, so that circular dependencies can be represented without breaking the model.

Currently, it is not (yet) clear if this is needed in practice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions