Skip to main content
The getLocation method retrieves the device’s current geographic location, including latitude, longitude, accuracy, and the time of the reading.

Request

JSON-RPC 2.0All methods in TweezerComm follow a JSON-RPC 2.0 structure. See Get Started for more details on how the requests are structured and sent.
In the request, the method field needs to be set to getLocation, as shown in the example below:

Request parameters

The table below describes the request parameters for this method:

Response

A successful request will return the following response:

Response parameters

The table below describes the response parameters for this method: