com.google.maps.gwt.client.places
Class PlaceResult

java.lang.Object
  extended by JavaScriptObject
      extended by com.google.maps.gwt.client.places.PlaceResult

public class PlaceResult
extends JavaScriptObject

Defines information about a Place. THIS SOURCE CODE IS GENERATED, DO NOT MODIFY


Constructor Summary
protected PlaceResult()
          Protected constructor avoids default public constructor.
 
Method Summary
static PlaceResult create()
           
  getAddressComponents()
          The collection of address components for this Place's location.
 java.lang.String getFormattedAddress()
          The Place's full address.
 java.lang.String getFormattedPhoneNumber()
          The Place's phone number, formatted according to the number's regional convention.
 PlaceGeometry getGeometry()
          The Place's geometry-related information.
 java.lang.String getHtmlAttributions()
          Attribution text to be displayed for this Place result.
 java.lang.String getIcon()
          URL to an image resource that can be used to represent this Place's category.
 java.lang.String getId()
          A unique identifier denoting this Place.
 java.lang.String getInternationalPhoneNumber()
          The Place's phone number in international format.
 java.lang.String getName()
          The Place's name.
 double getRating()
          The Place's rating, from 0.0 to 5.0, based on user reviews.
 java.lang.String getReference()
          An opaque string that may be used to retrieve up-to-date information about this Place (via PlacesService.getDetails() ).
 JsArrayString getTypes()
          An array of types for this Place (e.g., ["political",  "locality"] or ["restaurant", "establishment"] ).
 java.lang.String getUrl()
          URL of the associated Google Place Page.
 java.lang.String getVicinity()
          A fragment of the Place's address for disambiguation (usually street name and locality).
 java.lang.String getWebsite()
          The authoritative website for this Place, such as a business' homepage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlaceResult

protected PlaceResult()
Protected constructor avoids default public constructor.

Method Detail

create

public static final PlaceResult create()

getAddressComponents

public final  getAddressComponents()
The collection of address components for this Place's location.


getFormattedAddress

public final java.lang.String getFormattedAddress()
The Place's full address.


getFormattedPhoneNumber

public final java.lang.String getFormattedPhoneNumber()
The Place's phone number, formatted according to the number's regional convention.


getGeometry

public final PlaceGeometry getGeometry()
The Place's geometry-related information.


getHtmlAttributions

public final java.lang.String getHtmlAttributions()
Attribution text to be displayed for this Place result.


getIcon

public final java.lang.String getIcon()
URL to an image resource that can be used to represent this Place's category.


getId

public final java.lang.String getId()
A unique identifier denoting this Place. This identifier may not be used to retrieve information about this Place, and to verify the identity of a Place across separate searches. As id s can occasionally change, it is recommended that the stored id for a Place be compared with the id returned in later Details requests for the same Place, and updated if necessary.


getInternationalPhoneNumber

public final java.lang.String getInternationalPhoneNumber()
The Place's phone number in international format. International format includes the country code, and is prefixed with the plus (+) sign.


getName

public final java.lang.String getName()
The Place's name. Note: In the case of user entered Places, this is the raw text, as typed by the user. Please exercise caution when using this data, as malicious users may try to use it as a vector for code injection attacks (See http://en.wikipedia.org/wiki/Code_injection).


getRating

public final double getRating()
The Place's rating, from 0.0 to 5.0, based on user reviews.


getReference

public final java.lang.String getReference()
An opaque string that may be used to retrieve up-to-date information about this Place (via PlacesService.getDetails() ). reference contains a unique token that you can use to retrieve additional information about this Place in a Place Details request. You can store this token and use it at any time in future to refresh cached data about this Place, but the same token is not guaranteed to be returned for any given Place across different searches.


getTypes

public final JsArrayString getTypes()
An array of types for this Place (e.g., ["political",  "locality"] or ["restaurant", "establishment"] ).


getUrl

public final java.lang.String getUrl()
URL of the associated Google Place Page.


getVicinity

public final java.lang.String getVicinity()
A fragment of the Place's address for disambiguation (usually street name and locality).


getWebsite

public final java.lang.String getWebsite()
The authoritative website for this Place, such as a business' homepage.