Interface HasAddress

All Known Implementing Classes:
Doctor, User

public interface HasAddress
Implemented by every entity that has an address.
  • Method Details

    • getStreet

      String getStreet()
    • getHouseNumber

      String getHouseNumber()
    • getZipCode

      String getZipCode()
    • getFormattedAddress

      default String getFormattedAddress()
      Get the formatted address of this entity, containing street, house number, zip code. To also have the place's name at the end, use getFormattedAddressWithPlaceName()
      Returns:
      the formatted address of this entity
    • getFormattedAddressWithPlaceName

      default String getFormattedAddressWithPlaceName() throws IOException, InterruptedException, com.google.maps.errors.ApiException
      Get the formatted address of this entity, containing street, house number, zip code, place name. The place name is not stored with entities and is instead determined by geocoding the address with Google Maps.
      Returns:
      the formatted address with place name
      Throws:
      IOException
      InterruptedException
      com.google.maps.errors.ApiException