Abstract out common part of URL.
Add functions to read and write JSON files.
Add unit tests.
Wait for useful positioning accuracy.
Start and stop GPS polling on application active.