Package de.bytestore.hostinger.handler
Klasse AddressUtils
java.lang.Object
de.bytestore.hostinger.handler.AddressUtils
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic Stringformat(AddressResult addressIO) Format Address Result to String.static CompletableFuture<Collection<AddressResult>>getAddress(String addressIO) static CompletableFuture<List<Double>>getCoordinates(String addressIO) static voidstatic com.maxmind.geoip2.model.CityResponsequeryLocation(String addressIO) This method queries the location information using the GeoIP service.
-
Konstruktordetails
-
AddressUtils
public AddressUtils()
-
-
Methodendetails
-
loadGeoIP
public static void loadGeoIP() -
getCoordinates
-
getAddress
-
format
Format Address Result to String.- Parameter:
addressIO-- Gibt zurück:
-
getCountries
-
queryLocation
This method queries the location information using the GeoIP service.- Parameter:
addressIO- the address of the location to query- Gibt zurück:
- a CityResponse object containing the location information
- Löst aus:
RuntimeException- if there is an error while querying the location
-