Device Location
The location feature allows you to determine the rough coordinates of a device connected to the network based on its station at a given moment. This information is exposed by the mobile network infrastructure.
It's possible to verify a devices' geolocation data, by specifying certain coordinates, such as latitude, longitude, and radius (accuracy). In addition, you can also retrieve a device's location in case you don't have its specific coordinates at hand.
Terminology and acronyms
Here are some terms you will often see throughout the Location section:
-
Token / application key: The application key that you can view and copy from the application dashboard in the Getting Started steps. This information is used when you are creating a Network as Code client:
The
NetworkAsCodeClientis the entry-point to all the functionality Network as Code provides. Learn more about it.client = nac.NetworkAsCodeClient(token="<your-application-key-here>") -
Cell ID: Smartphone OS makers, smart car manufacturers, as well as mapping app creators, collect mobile cell IDs, GPS locations and store their relation to their databases automatically. APIs of such companies can return cell IDs, which are related geographic coordinates.
Last updated November 05, 2025