Use the Arduino IDE or PlatformIO. A basic example might look like this:
Ensure your chosen microcontroller or single-board computer has a way to connect to the internet. For Raspberry Pi and many microcontrollers, this can be achieved through a Wi-Fi adapter or an Ethernet cable. gpsuinet setup
A robust begins with correct physical installation. Use the Arduino IDE or PlatformIO