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.double
Returns the latitude of this location.double
Returns the longitude of this location.Returns the postal code.getState()
Returns the state name.Returns the state code.void
setAddress
(String addr) Updates the street address.void
Sets the city name.void
setCountry
(String country) Sets the country name.void
setCountryCode
(String code) Sets the country code.void
setLocation
(GeoLocation loc) void
setPostalCode
(String code) Sets the postal code.void
Sets the state/province name.void
setStateCode
(String code) Sets the state/province code.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.deltava.beans.GeoLocation
distanceFeet, distanceTo
-
Constructor Details
-
GeocodeResult
public GeocodeResult()
-
-
Method Details
-
getLatitude
public double getLatitude()Description copied from interface:GeoLocation
Returns the latitude of this location.- Specified by:
getLatitude
in interfaceGeoLocation
- Returns:
- the latitude in degrees
-
getLongitude
public double getLongitude()Description copied from interface:GeoLocation
Returns the longitude of this location.- Specified by:
getLongitude
in 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
-