If you are parked parallel to the curb, you may get out of the car on the traffic side only:

After parallel parking, you must not open your door if it will interfere with bicyclists or other traffic. Check for traffic before exiting your vehicle.
DMV Writen Test