public interface Geolocator
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
getCountry(java.net.InetAddress inetAddress) |
default java.util.Optional<java.lang.String> |
getCountry(java.lang.String address) |
void |
prepare()
Do everything that is needed for the geolocator to function.
|
void prepare() throws java.io.IOException
java.io.IOException
- If the preparation failsjava.net.UnknownHostException
- If preparation requires internet, but internet is not available.PreparationException
- If preparation fails due to Plan settingsjava.util.Optional<java.lang.String> getCountry(java.net.InetAddress inetAddress)
default java.util.Optional<java.lang.String> getCountry(java.lang.String address)