nickfox/GpsTracker ? reverse-engineered prompt

Reverse engineered prompt

Build me a GPS tracking app that lets me track Android and iPhone devices in real time and see their routes on a map.

I want a simple web dashboard where I can view live locations, past trips, distance, speed, battery level, and device history. It should support more than one device, let me switch map providers like OpenStreetMap and Google Maps, and keep tracking in the background on the phones.

Set it up so the server can store location updates in a database and the mobile apps can send data to it. Please make the whole thing easy to run locally too, with clear setup steps and sensible defaults. If you need to check the latest docs for the map or mobile parts, do that.

Keep the design clean and modern, and make it feel like a complete working GPS tracker system rather than just a demo.