Follow us on GitHub

com.google.gwt.maps.client.services
Class GeocoderResult

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.services.GeocoderResult

public class GeocoderResult
extends JavaScriptObject

A single geocoder result retrieved from the geocode server. A geocode request may return multiple result objects. Note that though this result is "JSON-like," it is not strictly JSON, as it indirectly includes a LatLng object.

See GeocoderResult API Doc


Constructor Summary
protected GeocoderResult()
          use newInstance();
 
Method Summary
 JsArray<GeocoderAddressComponent> getAddress_Components()
          An array of GeocoderAddressComponents
 String getFormatted_Address()
          A string containing the human-readable address of this location.
 GeocoderGeometry getGeometry()
          A GeocoderGeometry object
 JsArrayString getTypes()
          An array of strings denoting the type of the returned geocoded element.
static GeocoderResult newInstance()
          A single geocoder result retrieved from the geocode server.
 void setAddress_Components(JsArray<GeocoderAddressComponent> address_components)
          An array of GeocoderAddressComponents
 void setFormatted_Address(String formatted_address)
          A string containing the human-readable address of this location.
 void setGeometry(GeocoderGeometry geometry)
          A GeocoderGeometry object
 void setTypes(JsArrayString types)
          An array of strings denoting the type of the returned geocoded element.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeocoderResult

protected GeocoderResult()
use newInstance();

Method Detail

newInstance

public static final GeocoderResult newInstance()
A single geocoder result retrieved from the geocode server. A geocode request may return multiple result objects. Note that though this result is "JSON-like," it is not strictly JSON, as it indirectly includes a LatLng object.


setAddress_Components

public final void setAddress_Components(JsArray<GeocoderAddressComponent> address_components)
An array of GeocoderAddressComponents

Parameters:
address_components -

getAddress_Components

public final JsArray<GeocoderAddressComponent> getAddress_Components()
An array of GeocoderAddressComponents


setFormatted_Address

public final void setFormatted_Address(String formatted_address)
A string containing the human-readable address of this location.

Parameters:
formatted_address -

getFormatted_Address

public final String getFormatted_Address()
A string containing the human-readable address of this location.


setGeometry

public final void setGeometry(GeocoderGeometry geometry)
A GeocoderGeometry object

Parameters:
geometry -

getGeometry

public final GeocoderGeometry getGeometry()
A GeocoderGeometry object


setTypes

public final void setTypes(JsArrayString types)
An array of strings denoting the type of the returned geocoded element. A type consists of a unique string identifying the geocode result. (For example, "administrative_area_level_1", "country", etc.)

Parameters:
types -

getTypes

public final JsArrayString getTypes()
An array of strings denoting the type of the returned geocoded element. A type consists of a unique string identifying the geocode result. (For example, "administrative_area_level_1", "country", etc.)



Follow us on GitHub

Copyright © 2011-2012 Gone Vertical LLC. All Rights Reserved.