@Siderberry wrote:
For everyone wondering where track limits are, does EA Racenet give you the answers you are looking for? Go through each track with developer mode open in the browser and look at the data downloaded.
Looks like the track data is in the the 'spline' endpoint, eg Spain track data (file attached) is at https://web-api.racenet.com/api/F123Stats/performanceAnalysis/spline?trackId=04 (I don't seem to be able to use that as a direct link, but probably because I need to set bearer tokens etc in the request header).
It has a list of 'gates' which are connected via 'links'. Each gate is defined as a 'position' and 'normal' which looks like it is actually the racing line. They also have items such as 'left_track_limit', 'right_track_limit', 'left_white_line', 'right_white_line' etc, which I'm guessing would need to be calculated relative to the gate position using the normal.
This may not be a perfect representation of the map if it means left, right and racing line are all in a line (defined by a single 'gate') but it looks pretty close
Do you mind showing a screenshot of where you found the file. I just want to have a look. (I haven't been able to find out what/where data download is).