I need either a raspberry pi or arduino that has the ability to switch lights on and off from a phone, but also with gps tracking ability? Can you recommend any models as I am unsure?
If you want to communicate over cellular, I would recommend the Feather 32u4 FONA, which is like an Arduino Leonardo with a cell modem.
If you are controlling via a local network, any Arduino board with a WiFi or BLE would work. From Arduino I would look at the Uno WiFi Rev 2, the Nano IoT 33, or the MKR1000. The Nano Iot 33 is the most cost-effective in that group. Other options would include an ESP8266 or ESP32 board like the Adafruit Huzzah 8266.
Any of those boards will work with a GPS module. An example is the simple tracker I built. In that case, I used a FONA module connected to a Teensy, but still all "Arduino" based.
For communication, you could implement a simple REST API on the Arduino, or add a MQTT broker to your network, perhaps on a Pi, to send/receive MQTT commands.
Edit: thread on twitter for this post.