WARNING: This page is about a different car, the 2004 Toyota Corolla. However, it is still accessible from the selected car via links, so may be relevant.
The park/neutral position switch detects the shift lever position and sends signals to the ECM.