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 #275

Open
nickevansuk opened this issue May 23, 2017 · 4 comments
Open

distance #275

nickevansuk opened this issue May 23, 2017 · 4 comments

Comments

@nickevansuk
Copy link
Contributor

Source: GoodGym, British Cycling, Run Together

Useful to know the distance of a run, cycle or other activity. Value of distance should be type of http://schema.org/QuantitativeValue, with a variation to allow for a "range" to be included instead of a "value" for circumstances where only a range is captured.

Example 1:

"distance": {
  "value": 6,
  "unitCode": "KMT"
}

Example 2:

"distance": {
  "range": "0-5",
  "unitCode": "KMT"
}

Range examples:

  • "0-5" - 0 to 5 inclusive
  • "5" - 5 exactly
  • "50+" - 50 and above

Popular UN/CEFACT Common Codes for Opportunity Data:

  • MTR - metres
  • KMT - kilometre
  • SMI - mile
@ldodds
Copy link
Contributor

ldodds commented Jun 20, 2017

Another approach here is to say that a ride follows a specific route or course. The distance would then be a property of the route, which might also define its start and end points.

Some related discussion: schemaorg/schemaorg#1666

@peter-dolkens
Copy link

peter-dolkens commented Jul 7, 2017

Hi @nickevansuk - Why are we not using minValue/maxValue and instead going with a bespoke range property for this?

These would seem to stay within the schema.org spec to me:

// 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"
}

@openactive openactive deleted a comment from openactive-bot Jul 13, 2017
@nickevansuk
Copy link
Contributor Author

nickevansuk commented Jul 13, 2017

Makes sense to me, please do implement minValue and maxValue - these are more consistent with schema.org than my suggestion above.

@thadguidry
Copy link

thadguidry commented Apr 8, 2020

A new eventDistance property would be nice for lots of Events (annual pilgrimages, hikes) and not just SportsEvent (race).

Wikidata has now added this property as well:

  • event distance - distance over which a race or other event is conducted or was achieved

We already have duration so this seems a natural gap that needs filled.

@nickevansuk nickevansuk transferred this issue from openactive/ns-beta Apr 24, 2021
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

4 participants