Not that I can tell. While Pth files widen the drivable area to include the pits, this is a clue easily picked out visually, but not programmatically. On top of that, I don't know of a place where the "pit enter/pit leave" nodes are recorded.
It would be useful information to map out, imho. I'd start with recording the nodes for pit start & pit end. Once you have that you could see if you get any false positives if you just say
if(car between pitstartNode and pitEndNode && car between currentNode.DriveLeft and currentNode.LimitLeft) { // this assumes pits are always on the left of the track (bad assumption) car is in pit }
the Pth Limit on the pit side gives you the outer bounds, but whether the Drive line gives you the inner bounds is something that would have to be tested.
only reason why I ask, was because i was working on another track for LTC, and it was a bent pitlane, and just wondered if there was a tool that can pinpoint the exact xy co-ords .
I dont it with driving, and running a command to ask for the current co-ords ;P