Tango.info event code: Difference between revisions

From tango.info wiki
Jump to navigation Jump to search
No edit summary
Line 11: Line 11:
* http://www.tango.info/2010xtchzk (single event, source wiki)
* http://www.tango.info/2010xtchzk (single event, source wiki)


== Music performances before 2000 ==
== Music performances before the year 2000 ==
* it is under consideration to give unique 4 letter ids to these
* it is under consideration to give unique 4 letter ids to these
* the letters will only be 20 consonants, leaving out "l" which could be mistaken for "1".  
* the letters will only be 20 consonants, leaving out "l" which could be mistaken for "1".  

Revision as of 2010-09-21T15:44:42

D R A F T

A code for a tango.info event has the format

NNNNabcdef
regex: [0-9]{4}[a-z]{6}

Where NNNN is the year of the start of the event or if unknown, the year when the event was registered in tango.info, or if unknown, when it received the code.

Example:

Music performances before the year 2000

  • it is under consideration to give unique 4 letter ids to these
  • the letters will only be 20 consonants, leaving out "l" which could be mistaken for "1".
  • this gives 20^4 = 160 000 ids.
  • the 4-letter code would be contained in the tango.info event code at the last four positions, e.g. code "bcdf" as event code could be 1949xmbcdf
  • 1:1 conversion of 4-letter code by using the 20 consonants in alphabetical order as representatives in a base 20 counting system.
    • bbbc = 1, bbbd = 2, bbbz = 19, bbcb = 20

Festivals

A festival code contained a UN/LOCODE if this existed for that location.

  • ARBUE2008C (deprecated)
  • 2008ARBUEC (deprecated)
  • 2008arbuec (format introduced 2009-09-20)