If you are using 2G or 3G get the Network Technology, MCC, MNC, CID and LAC from the device with a "modemstat ?"
Then use a service such as https://unwiredlabs.com/
They offer a developer API to test with for free.
Write a python script to automate it for you.