{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-guides/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Gps","description":"Accelerate E&P application development and protect your innovation by consuming our Data and Domain APIs / Platform APIs.","lang":"en-US","meta":[{"name":"robots","content":"noindex"}],"llmstxt":{"hide":true,"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"gps","__idx":0},"children":["Gps"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Edge device with Debian 11+ OS or running in IRIS support network-module APIs which provides the current geo location of the Edge device. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["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."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"configuring-gps","__idx":1},"children":["Configuring Gps"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Application should provide the url to the API as shown below:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n    \"Name\": \"MyApp\",\n    \"AEA2\": {\n        \"GpsUrl\":\"http://xxx/gps/info/\"\n    }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"_","__idx":2},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#tab/net"},"children":["NET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Namespace : ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Agora.Edge"]}," ","A singleton ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Gps"]}," object of type ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GeoLocation"]}," is provided by SDK."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"csharp","header":{"controls":{"copy":{}}},"source":"using static Agora.SDK;\n\nGps.GetGpsInfo();\n","lang":"csharp"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"_-1","__idx":3},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#tab/python"},"children":["Python"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A singleton ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Gps"]}," object of type ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GPSSingleton"]}," is provided by the SDK and is imported as shown:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","header":{"controls":{"copy":{}}},"source":"from agora_gps import Gps\n","lang":"python"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["GPS location can be fetched by making call to following method"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","header":{"controls":{"copy":{}}},"source":"from agora_gps import Gps\nGps.get_gps_info()\n","lang":"python"},"children":[]}]},"headings":[{"value":"Gps","id":"gps","depth":2},{"value":"Configuring Gps","id":"configuring-gps","depth":4},{"value":"","id":"_","depth":1},{"value":"","id":"_-1","depth":1}],"frontmatter":{"seo":{"title":"Gps"}},"lastModified":"2025-12-26T10:55:12.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/solutions/agora/referencemanual/gps","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}