/uefa-euro-2020

Primary LanguageJavaScriptMIT LicenseMIT

UEFA Euro 2020 (2021...)

Usage

To use the data in your app, you can use this link

https://raw.githubusercontent.com/lsv/uefa-euro-2020/master/data.json

Which will be updated

The data

The data is manually updated by me and maybe contributors - so if you see a error, or a result that has not been updated, please change it with a PR :)

Data explanation

Matches in general

  • When a match is finished, the "finished": false, will be updated to true.
  • Check the date to see if a match is in progress - if home score and away score is still null and the datetime is older than now, then the match is in progress.
  • When a team scores, the home_result and/or away_result will be updated - The match is still in progress, until finished has been changed
  • In knockout, also home_penalty and away_penalty is used, if a match is in penalty shootout.

Groups

  • Each group have winner, runnerup, thirdplace and fourthplace - which will be updated when all matches in the group is finished.
  • You can create your own group standings from the matches until the group has been decided.
  • All places in each group if they have equal points/score - Then there is disciplinary points to decide - They will properly NOT be updated until a group is finished.
  • If disciplinary points is still the same, the rank will be used.

Knockout phases

  • When teams has been found for a knockout phase, the "teams_found": false, will be updated to true.
  • Third place teams in knockouts can be quite difficult to figure out - But here is a schema of it.
Third-placed teams
qualify from groups
1B
vs
1C
vs
1E
vs
1F
vs
A B C D 3A 3D 3B 3C
A B C E 3A 3E 3B 3C
A B C F 3A 3F 3B 3C
A B D E 3D 3E 3A 3B
A B D F 3D 3F 3A 3B
A B E F 3E 3F 3B 3A
A C D E 3E 3D 3C 3A
A C D F 3F 3D 3C 3A
A C E F 3E 3F 3C 3A
A D E F 3E 3F 3D 3A
B C D E 3E 3D 3B 3C
B C D F 3F 3D 3C 3B
B C E F 3F 3E 3C 3B
B D E F 3F 3E 3D 3B
C D E F 3F 3E 3D 3C