Geo Location automation testing for geo fence feature

setLocation() is an AppiumDriver method, implemented in java-client (https://github.com/appium/java-client), not a WebDriver method:

AppiumDriver driver = new AndroidDriver(remoteAdress, capabilities);
Location loc = new Location(20.0, 12.5, 1000);  // latitude, longitude, altitude
driver.setLocation(loc);