Package net.solarnetwork.central.domain
Interface LocationMatch
- All Superinterfaces:
Comparable<Long>,EntityMatch,FilterMatch<Long>,net.solarnetwork.domain.Identity<Long>
- All Known Implementing Classes:
SolarLocation
API for Location search results.
-
Method Summary
Modifier and TypeMethodDescriptionGet the ISO 3166-1 alpha-2 character country code.Get the elevation, in meters.Get the decimal latitude.Get the locality (city, town, etc.).Get the decimal longitude.getName()A generalized name, can be used for "virtual" locations.Get a country-specific postal code.A country-specific regional identifier.Get a country-specific state or province identifier.Get the street address.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface net.solarnetwork.domain.Identity
getId, hasId
-
Method Details
-
getName
String getName()A generalized name, can be used for "virtual" locations.- Returns:
- the location name
-
getCountry
String getCountry()Get the ISO 3166-1 alpha-2 character country code.- Returns:
- 2-character country code
-
getRegion
String getRegion()A country-specific regional identifier.- Returns:
- region identifier
-
getStateOrProvince
String getStateOrProvince()Get a country-specific state or province identifier.- Returns:
- state or province identifier
-
getPostalCode
String getPostalCode()Get a country-specific postal code.- Returns:
- postal code
-
getLocality
String getLocality()Get the locality (city, town, etc.).- Returns:
- locality
-
getStreet
String getStreet()Get the street address.- Returns:
- street
-
getLatitude
BigDecimal getLatitude()Get the decimal latitude.- Returns:
- latitude
-
getLongitude
BigDecimal getLongitude()Get the decimal longitude.- Returns:
- longitude
-
getElevation
BigDecimal getElevation()Get the elevation, in meters.- Returns:
- the elevation
- Since:
- 1.2
-