Error taking gps data and putting it into a string

I don't see how even with a high gain antenna, you can get 250-400 km with 10 mW.

Read up on the technology. LoRa radios can receive and process signals at -130 dBm. Also, check out the range tests with low gain antennas at srnet's site http://www.loratracker.uk/.