Skip to main content

SeeTestAutomation - 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()

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();