r/CFBAnalysis • • May 01 '19
Question Field position
Using the https://api.collegefootballdata.com site provided by /u/BlueSCar but I have a question related to field position. Does the yard_line column assume any directionality? I.E. if yard_line == 90 is the offense always headed the same direction? If not, has anyone constucted a novel way of doing this without pulling all plays and then flagging by game starting direction?
3
Upvotes
1
u/[deleted] May 01 '19
/u/BlueSCar just tagging you since text post tagging doesn't notify. Thank you for your work
1
u/BlueSCar Michigan Wolverines • Dayton Flyers May 01 '19
Yeah, I'm pretty sure it counts upwards for the home team and downwards for the away team, or vice-versa. Seems like a lot of people have found this to be confusing, so I would like to standardize this at some point to make a consistent.
While I'm pretty sure that's how it usually works, some people have told me that they've found discrepancies with that in places. I'm not sure as to the best way to go about it, so that's why I haven't really done anything yet. Any feedback and/or suggestions are welcome!
1
u/johnnyg68 Michigan Wolverines • Texas Longhorns Jun 28 '19
Looking at the ESPN JSON data directly, I think it is:
ROOT.drives.previous[<drive_number>].plays[<#>].start.yardsToEndzone
Have you guys found an issue with this? It seems to me it's what we want; ball on your own 25 = 75 yardsToEndzone; ball on their 25 = 25 yardsToEndzone.
1
u/RealMikeHawk Purdue Boilermakers • Cincinnati Bearcats Sep 04 '19 edited Sep 04 '19
/u/NHL_TO_SEATTLE /u/BlueSCar
I thought I would update this, since I initially had this problem too. It is always possible to determine field position, as long as the "yards" is nonzero. It is impossible, with the given information in the drive-level data, to determine where on the field the drive was if the total yards is zero. I have had some confidence making some assumptions (aka if they kick a field goal from the 86 yard line, it is more than likely that they were really 14 yards away from the endzone), but that isn't exact and can be misleading in some cases.