W3C home > Mailing lists > Public > public-opentrack@w3.org > November 2017

Re: Competition Types [was Re: Meeting 22 Nov (09:00 UTC)]

From: Andy Robinson <andy@reportlab.com>
Date: Wed, 22 Nov 2017 17:05:12 +0000
Message-ID: <CABjtApsn7OGRAaJfU+cy67JifEUt6OweshLQDL9xihHWiWtwFg@mail.gmail.com>
To: Martin Alvarez-Espinar <martin@w3.org>
Cc: Nicolas Launois <nicolas.launois@european-athletics.org>, public-opentrack <public-opentrack@w3.org>
On 22 November 2017 at 16:32, Martin Alvarez-Espinar <martin@w3.org> wrote:

> What about:
> * International Area (several countries and territories)
> * National (just one country)
> * Regional/Local (can include all what IAAF refers to 'territory')
> ?

This geographical taxonomy seems unnecessary to me, a possibility for
endless scope creep, and I do not believe anyone ever came up with a
single "correct way to do it".  I worked for 6 years for Hilton group
who had a 9-level hierarchy of tourist information that needed endless
discussion and policing, and I don't think this will be a good use of
our time.

Taking Martin's last race, I don't personally care how you describe
"Mitcham Common, London", and whether its classified as part of
London, or Surrey, or the "Royal and Ancient Geographical County of
Surrey for Sporting Purposes" (yes, that exists and it matters).  When
exchanging lists, we just want to know where it happens.  So why not
use...

1. Latitude and Longitude, if we have it!
2. If not, A piece of text you can pass to Google Maps or other
geocoders. An address or postcode of a track or stadium name are even
better.  Given this info, we can derive the
latitude/longitude/altitude
3. The country, which is usually fairly clear.

Once you have this, Google and many other OpenStreetMap tools can tell
you the administrative boundaries, or search by proximity.  Below I
show two lines of code to do it.  Anyone building a database of
competitions in their country can use these libraries to "get it right
for them".  They may be interested in political or sporting boundaries
and they can be different.

So let's publish the minimum, and maybe offer tutorials and tools on
how to extend it.

With "level of coverage" I think you are also skirting into different
questions over jurisdiction, not location.  These are best answered
by...

4. Who is organising it?    We are developing organisation codes, but
an org name or link to their website would do.
5. Which body or bodies are licensing it?  There may be permits from
national body, European Athletics, IAAF
6. is it part of a larger series or league?
7. Does the event have its own website?
8. Is there a restriction on who can enter, or is it open to anyone?
This could be descriptive text.


Geocoding is trivial in all languages.
>>> import geocoder
>>> g = geocoder.google('Mountain View, CA')
>>> g.latlng
(37.3860517, -122.0838511)


Just my 2p worth..
Received on Wednesday, 22 November 2017 17:05:39 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 22 November 2017 17:05:40 UTC