Class GeocodeResult
java.lang.Object
org.deltava.beans.stats.GeocodeResult
- All Implemented Interfaces:
GeoLocation
A bean to store Google Geocoding results.
- Since:
- 2.3
- Version:
- 7.2
- Author:
- Luke
-
Field Summary
Fields inherited from interface org.deltava.beans.GeoLocation
ALL, DEGREE_FEET, DEGREE_MILES, FEET_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE, RADIAN_MILES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the street address.getCity()Returns the city name.Displays the city and state, and the country code if not US.Returns the country name.Returns the country code.doubleReturns the latitude of this location.doubleReturns the longitude of this location.Returns the postal code.getState()Returns the state name.Returns the state code.voidsetAddress(String addr) Updates the street address.voidSets the city name.voidsetCountry(String country) Sets the country name.voidsetCountryCode(String code) Sets the country code.voidsetLocation(GeoLocation loc) voidsetPostalCode(String code) Sets the postal code.voidSets the state/province name.voidsetStateCode(String code) Sets the state/province code.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.deltava.beans.GeoLocation
distanceFeet, distanceTo
-
Constructor Details
-
GeocodeResult
public GeocodeResult()
-
-
Method Details
-
getLatitude
public double getLatitude()Description copied from interface:GeoLocationReturns the latitude of this location.- Specified by:
getLatitudein interfaceGeoLocation- Returns:
- the latitude in degrees
-
getLongitude
public double getLongitude()Description copied from interface:GeoLocationReturns the longitude of this location.- Specified by:
getLongitudein interfaceGeoLocation- Returns:
- the longitude in degrees
-
getAddress
-
getPostalCode
-
getCity
-
getState
-
getStateCode
-
getCountry
-
getCountryCode
-
setAddress
Updates the street address.- Parameters:
addr- the street address- See Also:
-
setPostalCode
Sets the postal code.- Parameters:
code- the postal code- See Also:
-
setCity
-
setState
Sets the state/province name.- Parameters:
state- the state/province name- See Also:
-
setStateCode
Sets the state/province code.- Parameters:
code- the state/province code- See Also:
-
setCountry
Sets the country name.- Parameters:
country- the country name- See Also:
-
setCountryCode
Sets the country code.- Parameters:
code- the country code- See Also:
-
setLocation
-
getCityState
Displays the city and state, and the country code if not US.- Returns:
- the concatenated city, state and country
-
toString
-