Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sebastian-peter opened this issue Jan 17, 2022 · 0 comments

Comments

@sebastian-peter
Copy link
Member

sebastian-peter commented Jan 17, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant