I use the Pi UPS out of Germany. When it detects a power loss, it acts like a UPS and sends a safe shutdown signal to your Pi. Given you're building a GPS for the car, check out Black Box Pi. I've built an open source black box for the car using a Pi that logs GPS, OBD2, and more. http://www.blackb...