Edge device with Debian 11+ OS or running in IRIS support network-module APIs which provides the current geo location of the Edge device. Gps module in the Edge SDK provide interface for the Edge applications to fetch the current geo location of the device where the application is running.
Application should provide the url to the API as shown below:
{
"Name": "MyApp",
"AEA2": {
"GpsUrl":"http://xxx/gps/info/"
}
}Namespace : Agora.Edge A singleton Gps object of type GeoLocation is provided by SDK.
using static Agora.SDK;
Gps.GetGpsInfo();A singleton Gps object of type GPSSingleton is provided by the SDK and is imported as shown:
from agora_gps import GpsGPS location can be fetched by making call to following method
from agora_gps import Gps
Gps.get_gps_info()