Detect car position at specific location

I want to detect car postion and direction at that white parking area i.e the car is exact on that location and and in that direction. I tried some methods but that are not perfect. How can i do it perfectly.

If you want exact you can just put the car in the position you want, record the positon (x,y,z) and the rotation (x,y,z) and then do a check against your expected values with some tolerance for each of the values.