ID of the away team, may be useful in rules.
The competition in which this game has been played
Current event that is being processed by the parser, point to the last event in the sequence in "sequence" type rules.
Current sequence that is being processed by the parser, unavailable for "event" type rules.
All the customEvents in the given match.
All the customEvents in the given match.
All the events in the given match.
A list of player that should be excluded from formation calculation since they are not active part of the game (for instance the football goalkeepers)
The raw tracking states, can be used only in tracking rules.
ID of the home team, may be useful in rules.
id of the match (depends from the source data)
Periods and period lengths available for the given sport
Players that took part in the match
The event processed just before the current one by the parser, not available in sequence rules or if analyzing the first event.
The previous sequence processed just before the current, unavalable for "event" type rules or if analyzing the first sequence.
Final result of the game in the format of X:Y where X is the number of points for the home team
List of rules applied to this match
Scheduled match start, may be different from the first match event
Sequences created for this game.
Source used to generate this match
Teams that took part in the match
The tracking format associated to this game, may be null if only events are available
Get the away team
Get the home team
The title of the game, for instance Genoa - Milan
Create a new custom event using as input a CustomEventOptions object. The object can be customized to inherit part of the new event from the current event.
options for the newly created event
the new event, to be edited, if needed.
Create a new sequence from the current rule, using an arbitrary (optional) list of events.
NB: if you create the custom sequence without events you will have to set up start/endTime and period by hand.
the mandatory name of the sequence to create.
the mandatory team for the sequence
optional list of events to attach to the sequence.
Get a player by his id
id of the player
the player with the given id
Get a team by his id
id of the team
the team with the given id
Returns if the home team is attacking left to right (true) or right to left (false) in the given period. This has to be used only in tracking rules, in event/sequence rules, the position of the player in the event is always normalized as if the team is attacking left to right.
period of the match
true if the home team is attacking left to right in the given period
Can be used to develop cross-sport rules, this API returns the sport type this data is for.
At the moment it returns only FOOTBALL and UNKNOWN in the SportType enum
the sport this data is based on.
The current game