Skip to main content

SeeTest Client - GetLocation

info

Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .

getLocation()

info

For Android 10, if the location is off - set any or both the below properties =true (see SeeTest Client - SetProperty) location.service.gps location.service.network

Description

Get the current Geo location.

Usage

Get the device Geo location(<latitude>, <longitude>, <altitude>).

String[] location = client.getLocation().split(",");
String latitude = location[0];
String longitude = location[1];
String altitude = location[2];

Code Examples

Java Example

 String location = client.getLocation();