Klasse AddressUtils

java.lang.Object
de.bytestore.hostinger.handler.AddressUtils

public class AddressUtils extends Object
  • Konstruktordetails

    • AddressUtils

      public AddressUtils()
  • Methodendetails

    • loadGeoIP

      public static void loadGeoIP()
    • getCoordinates

      public static CompletableFuture<List<Double>> getCoordinates(String addressIO)
    • getAddress

      public static CompletableFuture<Collection<AddressResult>> getAddress(String addressIO)
    • format

      public static String format(AddressResult addressIO)
      Format Address Result to String.
      Parameter:
      addressIO -
      Gibt zurück:
    • getCountries

      public static List<Locale> getCountries()
    • queryLocation

      public static com.maxmind.geoip2.model.CityResponse queryLocation(String addressIO)
      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