Class GetGoogleGeocode
java.lang.Object
org.deltava.dao.http.DAO
org.deltava.dao.http.GetGoogleGeocode
A Data Access Object to do reverse geocoding using the Google HTTP API. The GeoLocation
URL is https://maps.google.com/maps/geo?q=(lat),(long)invalid input: '&sensor'=falseinvalid input: '&key'=(key)
- Since:
- 2.3
- Version:
- 11.2
- Author:
- Luke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGeoData
(GeoLocation loc) Retrieves the Geocoding results for the location.Methods inherited from class org.deltava.dao.http.DAO
getCompression, getHeaderField, getIn, getOut, getResponseCode, init, reset, setAuthentication, setCompression, setConnectTimeout, setMethod, setReadTimeout, setRequestHeader, setReturnErrorStream
-
Constructor Details
-
GetGoogleGeocode
public GetGoogleGeocode()
-
-
Method Details
-
getGeoData
Retrieves the Geocoding results for the location.- Parameters:
loc
- the GeoLocation- Returns:
- a List of GeocodeResult beans
- Throws:
DAOException
- if an I/O error occurs
-