All the players
[
{"home":{"a":null,"b":null,"c":null,"d":null,"e":null,"f":null,"g":null,"h":null,"i":null,"j":null,"k":null},"away":{"a":null,"b":null,"c":null,"d":null,"e":null,"f":null,"g":null,"h":null,"i":null,"j":null,"k":null},"ball":null}
]
Add another frame
{"home":{"a":null,"b":null,"c":null,"d":null,"e":null,"f":null,"g":null,"h":null,"i":null,"j":null,"k":null},"away":{"a":null,"b":null,"c":null,"d":null,"e":null,"f":null,"g":null,"h":null,"i":null,"j":null,"k":null},"ball":null}
[
{
ball: { x: 0, y 0 },
home: {
a: { x: 0, y 0 },
b: { x: 0, y 0 },
...
k: { x: 100, y: 100 }
},
away: {
a: { x: 0, y 0 },
b: { x: 0, y 0 },
...
k: { x: 100, y: 100 }
}
}
]
Each array item reflects one frame.
Each frame is an object with three keys: "ball", "away" and "home".
- "ball" is a set of coordinates.
- "home" and "away" are objects with a unique ids as keys, and coordinates as values.
The coordinates have two keys (x and y), and the values are percentages using the width and height of the field.
See Example data files, which are derived from the AWESOME and painstaking work from https://github.com/rjtavares/football-crunching.
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.