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

distance #104

Open
nickevansuk opened this issue Jun 25, 2018 · 0 comments
Open

distance #104

nickevansuk opened this issue Jun 25, 2018 · 0 comments
Labels
proposal Proposed changes to the specification

Comments

@nickevansuk
Copy link
Contributor

nickevansuk commented Jun 25, 2018

Proposer

British Cycling, Run Together, GoodGym, SportStarta, British Triathlon

Use Case

"As a potential participant of an event with a route, I want to know how long the route is - using either an exact value or approximate range"

Why is this not covered by existing properties?

Distance isn't covered in the existing model

Please provide a link to example data

Proposal

Propose using the existing schema.org https://schema.org/distance property on the Event type, but having it contain an object of type QuantitativeValue instead of a string.

The specification should also mandate that minValue, maxValue and value are all represented as number types in JSON (see this rule)

Example

From the beta work on this topic, the following looks like a good start:

// 0-5
"distance": {
  "type": "QuantitativeValue",
  "minValue": 0,
  "maxValue": 5,
  "unitCode": "KMT"
}

// 5
"distance": {
  "type": "QuantitativeValue",
  "value": 5,
  "unitCode": "KMT"
}

// 50+
"distance": {
  "type": "QuantitativeValue",
  "minValue": 50,
  "unitCode": "KMT"
}

Beta use

Use beta:distance for early implementations of this proposal.

@nickevansuk nickevansuk added the proposal Proposed changes to the specification label Jun 25, 2018
@nickevansuk nickevansuk added this to Backlog in Specification revisions via automation Jun 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Proposed changes to the specification
Projects
Development

No branches or pull requests

1 participant