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

Relationship between Events and Routes #12

Open
thill-odi opened this issue Jul 17, 2019 · 3 comments
Open

Relationship between Events and Routes #12

thill-odi opened this issue Jul 17, 2019 · 3 comments
Labels

Comments

@thill-odi
Copy link
Contributor

Routes appear to support two use-cases:

  1. Acting as an independent amenity available for self-directed activities (e.g., a trail running through a national park)
  2. Supporting other activities planned around and depending upon its existence (e.g., regularly scheduled running clubs, one-off seasonal events such as treasure hunts)

The question, then, is of how Opportunities and Routes should relate to support these two cases.

The proposal would be that Routes should be available as a standalone datatype (so that one might have, e.g., an RPDE feed of Routes); but that a route attribute ought to be added to the Opportunity Event type, which takes a Route as its value, whether directly or via a URL.

@blabyboy
Copy link

Initially, I agree with this, with an exception on the last part. I would propose that the attribute is always a URL (pointer) to a Route, as opposed to mixing the types (Route or URL). This would keep it simple for both publisher and consumer - the publisher only needs a string value to populate and the consumer only has to ingest the URL and can then process that part of the data at their time of choosing. It also helps to maintain the separation of Route from Opportunity Event for CRUD operations.

@thill-odi
Copy link
Contributor Author

At the moment @blabyboy's suggestion that only the Route Metadata object be allowed (and not a URL) is specified. See https://www.openactive.io/modelling-opportunity-data/EditorsDraft, in particular the table for Section 5.6.

@abs0 abs0 mentioned this issue Jul 30, 2019
@thill-odi
Copy link
Contributor Author

Note that if we hive Routes off into a separate specification we'll probably need to support URL references as well as the resolved object here.

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

No branches or pull requests

2 participants