public class VEGeocoder
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Class and Description |
---|---|
static class |
VEGeocoder.Options
Options object for VEGeocoder
|
Modifier and Type | Method and Description |
---|---|
void |
addAddressToLocationsHandler(VEAddressToLocationsHandler handler)
Add event handler to listen to onAddressToLocationsComplete.
|
void |
addErrorHandler(ErrorHandler handler)
Add event handler to listen to onError.
|
Deferred |
addressToLocations(java.lang.String query)
Sends a geocode request to Bing Maps to find candidates for a single address specified in the query argument.
|
Deferred |
addressToLocations(java.lang.String query,
VEAddressToLocationsCallback callback)
Sends a geocode request to Bing Maps to find candidates for a single address specified in the query argument.
|
static boolean |
assertLoaded()
Check that the esri.virtualearth.VEGeocoder package has been loaded
|
static VEGeocoder |
create(VEGeocoder.Options options)
Creates a new VEGeocoder object.
|
java.lang.String |
getCulture()
Specifies the culture in which to return results.
|
void |
setCulture(java.lang.String culture)
Sets the culture in which to return results.
|
public static VEGeocoder create(VEGeocoder.Options options)
options
- public static boolean assertLoaded()
public final java.lang.String getCulture()
public final Deferred addressToLocations(java.lang.String query, VEAddressToLocationsCallback callback)
query
- - The address to locate.callback
- - The function to call when the method has completed.public final Deferred addressToLocations(java.lang.String query)
query
- - The address to locate.public final void setCulture(java.lang.String culture)
culture
- - The culture value. The default value is "en-US". For a list of supported cultures,
see http://msdn.microsoft.com/en-us/library/cc981048.aspx.public final void addAddressToLocationsHandler(VEAddressToLocationsHandler handler)
handler
- - Fires when VEGeocode.addressToLocation() has completed.public final void addErrorHandler(ErrorHandler handler)
handler
- - Fires when an error occurs when executing the task.