Yeah even though your car is on public property, you being in the car still makes it so you are in your own personal property in most instances. Everything's up to officer's discression though, so if they want to arrest you for something there's not much you can do about it.