Hey, yeah it's possible to use only IP to get the location. Please refer my previous comments down below
Hello!Running main.py runs a series of functions internallymaintain()->getLocation()->getCellTowerInfo()Run the function that's called first i.e. getCellTowerInfo() on console. If this returns data as expected, move to getLocation() and finally run main.py.The source code may not run as is, since it depends upon a specific brand of USB dongle. However if you start with testing one function at a time, you will be able to complete it easily. You may have to change a few lines of Python code, so please run some sample programs to get introductory lessons on the programming language. This will help you grasp the source code.
I think you will have to write some Java code to be run inside an Android app that can monitor the mobile's GPS location and send to a destination machine.If you want to get a Raspberry Pi's location using GPS, there are special h/w modules you can purchase and hook them up with RPi.