If the geolocation is present in a textbox then locate the text box with the locators and then use getText()
method. Then print the value.
WebElement location = driver.findElementByID("Locator value");
System.Out.println(location);
if(location.equals("Actual geolocation"))
{
System.out.println("location matches");
}
else
{
System.out.println("location is not matched");
}