Package com.ehealthsystem.tools
Interface HasAddress
public interface HasAddress
Implemented by every entity that has an address.
-
Method Details
-
getStreet
String getStreet() -
getHouseNumber
String getHouseNumber() -
getZipCode
String getZipCode() -
getFormattedAddress
Get the formatted address of this entity, containing street, house number, zip code. To also have the place's name at the end, usegetFormattedAddressWithPlaceName()
- Returns:
- the formatted address of this entity
-
getFormattedAddressWithPlaceName
default String getFormattedAddressWithPlaceName() throws IOException, InterruptedException, com.google.maps.errors.ApiExceptionGet 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
-