the away team player positions, it includes all the position of the player of the away team that are on the field in the current frame
The position of the ball, as x, y, z, the position is normalized so that the lower left corner is 0, 0, the center of the field is (50, 50) and the upper right corner is 100,100
The speed in km/h for the ball, may be 0 if the tracking format doesnt offer the tracking speed.
the state game time in seconds since the start of the period (may contain milliseconds), it starts from 0 on every period start.
the home team player positions, it includes all the position of the player of the home team that are on the field in the current frame
True if the ball is in play, out if the game is stopped (for a foul, a throw in or other...)
the state period of the game (1 is first half, 2 second half...). The meaning may vary depending on the sport, the mapping between sport and length is available in the game object.
The team that has the possession of the ball, 1 home team, 2 away team, null unknown
the timestamp in milliseconds for this state, it's a UTC timestamp in milliseconds.
Returns the details (player list, team id and attacking direction) of the attacking team (the team WITH ball possession). If the tracking data do not support possession this function will return an empty players object
an TeamDetail object containing details about the attacking team
Returns the details (player list, team id and attacking direction) of the defending team (the team without ball possession). If the tracking data do not support possession this function will return an empty players object
an TeamDetail object containing details about the defending team
Returns the number of defenders (team without ball possession) ahead the given x coordinate in the given moment, the function consider both team as they are attacking from left to right.
the coordinate to compare the positions against in % (0 friendly goal, 100 opponents goal)
the number of defenders ahead a certain field position
Returns the number of defenders (team without ball possession) behind the given x coordinate in the given moment, the function consider both team as they are attacking from left to right.
the coordinate to compare the positions against in % (0 friendly goal, 100 opponents goal)
the number of defenders behind a certain field position
Returns the number of defenders (team without possession) behind the ball in the given moment, the function takes care of handling the attacking direction.
the number of defenders behind the ball
Returns the number of defenders (team without ball possession) in a given zone, the function consider both team as they are attacking from left to right.
the NORMALIZED zone to check (the left goal area is ALWAYS the defensive one)
the number of defenders in a given zone
Dumps the field, with ball and players to an utf-8 string.
optional player to highlight
a string representation of the field
Get an X event coordinate (the team in the event is always attacking left to right) from an absolute tracking coordinate.
absolute coordinate (as the one in the playerstate objects or in ballPosition)
id of the team
the final coordinate (may be the same of the source if the team specified is attacking left to right)
Get an Y event coordinate (the team in the event is always attacking left to right) from an absolute tracking coordinate.
absolute coordinate (as the one in the playerstate objects or in ballPosition)
id of the team
the final coordinate (may be the same of the source if the team specified is attacking left to right)
Found the number of players in the team without ball at a distance of less or equal than the provided argument from the ball.
distance in meter between the player and the ball
an object containing the number of players nearest than "distance" from the ball, the teamId of the pressing team and if it's attacking left to right or right to left.
The tracking information associated to a given event