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 was created through the API Management dashboard in the Getting Started steps. This information is used when you are creating a Network-as-Code client:
client = nac.NetworkAsCodeClient(token="<your-application-key-here>")
-
Device ID: An email-like identifier for a device (or subscriber) into the network. It works as a device object created to manage a particular device on the network, for example:
device@testcsp.net
. -
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.
Network as Code client
The NetworkAsCodeClient
is the entry-point to all the functionality Network as Code provides.
Learn more about it.