|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.maps.client.geocode.Geocoder
public final class Geocoder
A class for Geocoding Addresses through Google's Geocoding service over the Internet.
| Constructor Summary | |
|---|---|
Geocoder()
Creates a new instance of a geocoder that talks directly to Google servers. |
|
Geocoder(GeocodeCache cache)
Create a new geocoder object allowing a custom cache to be used. |
|
| Method Summary | |
|---|---|
java.lang.String |
getBaseCountryCode()
Returns the current country code in use by the given geocoder. |
GeocodeCache |
getCache()
Returns the currently used geocode cache. |
void |
getLatLng(java.lang.String address,
LatLngCallback callback)
Sends a request to Google servers to geocode the specified address. |
void |
getLocations(LatLng point,
LocationCallback callback)
Sends a request to Google servers to reverse geocode the specified point. |
void |
getLocations(java.lang.String address,
LocationCallback callback)
Sends a request to Google servers to geocode the specified address. |
LatLngBounds |
getViewport()
Returns the viewport for magnifying geocoding results within that geocoder. |
void |
reset()
Resets the geocoder. |
void |
setBaseCountryCode(java.lang.String countryCode)
Sets the geocoder to bias search results as if they were sent from the domain specified by the given country code top-level domain (ccTLD). |
void |
setViewport(LatLngBounds bounds)
Sets the geocoder to magnify geocoding results within or near the given viewport. . |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Geocoder()
FactualGeocodeCache is used for results caching.
public Geocoder(GeocodeCache cache)
cache - An instance of a cache to associate with the geocoder.FactualGeocodeCache| Method Detail |
|---|
public java.lang.String getBaseCountryCode()
null.)
public GeocodeCache getCache()
null, if no
client-side caching is performed.
public void getLatLng(java.lang.String address,
LatLngCallback callback)
null point. In case of ambiguous addresses, only the point for
the best match is passed to the callback function.
address - the address to search for.callback - methods to call when the query returns.
public void getLocations(java.lang.String address,
LocationCallback callback)
Placemark
objects, is passed to the user-specified callback function. Unlike the
getLatLng(String,LatLngCallback) method, the callback
function may determine the reasons for failure by examining the code value
of the Status field.
address - the address to search for.callback - methods to call when the query returns.
public void getLocations(LatLng point,
LocationCallback callback)
Placemark objects, is passed to the user-specified callback
function. The callback function may determine the reasons for failure by
examining the code value of the Status field.
point - the point to search for.callback - methods to call when the query returns.public LatLngBounds getViewport()
public void reset()
public void setBaseCountryCode(java.lang.String countryCode)
countryCode - country code top-level domain (ccTLD). Country codes are
case insensitive.public void setViewport(LatLngBounds bounds)
bounds - the viewport expressed as a LatLngBounds rectangle
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||