Follow us on GitHub

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

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

public class PlaceResult
extends JavaScriptObject

Defines information about a Place.

See PlaceResult API Doc


Constructor Summary
protected PlaceResult()
          use newInstance();
 
Method Summary
 JsArray<GeocoderAddressComponent> getAddress_Components()
          The collection of address components for this Place's location.
 String getFormatted_Address()
          The Place's full address.
 String getFormatted_Phone_Number()
          The Place's phone number, formatted according to the number's regional convention.
 PlaceGeometry getGeometry()
          The Place's geometry-related information.
 String getHtml_Attributions()
          Attribution text to be displayed for this Place result.
 String getIcon()
          URL to an image resource that can be used to represent this Place's category.
 String getId()
          A unique identifier denoting this Place.
 String getInternational_Phone_Number()
          The Place's phone number in international format.
 String getName()
          The Place's name.
 int getRating()
          The Place's rating, from 0.0 to 5.0, based on user reviews.
 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"]).
 String getUrl()
          URL of the associated Google Place Page.
 String getVicinity()
          A fragment of the Place's address for disambiguation (usually street name and locality).
 String getWebsite()
          The authoritative website for this Place, such as a business' homepage.
static PlaceResult newInstance()
          Create new PlaceResult instance.
 void setAddress_Components(JsArray<GeocoderAddressComponent> address_components)
          The collection of address components for this Place's location.
 void setFormated_Address(String formatted_address)
          The Place's full address.
 void setFormatted_Phone_Number(String formatted_phone_number)
          The Place's phone number, formatted according to the number's regional convention.
 void setGeometry(PlaceGeometry geometry)
          The Place's geometry-related information.
 void setHtml_Attributions(String html_attributions)
          Attribution text to be displayed for this Place result.
 void setIcon(String icon)
          URL to an image resource that can be used to represent this Place's category.
 void setId(String id)
          A unique identifier denoting this Place.
 void setInternational_Phone_Number(String international_phone_number)
          The Place's phone number in international format.
 void setName(String name)
          The Place's name.
 void setRating(int rating)
          The Place's rating, from 0.0 to 5.0, based on user reviews.
 void setReference(String reference)
          An opaque string that may be used to retrieve up-to-date information about this Place (via PlacesService.getDetails()).
 void setTypes(JsArrayString types)
          An array of types for this Place (e.g., ["political", "locality"] or ["restaurant", "establishment"]).
 void setUrl(String url)
          URL of the associated Google Place Page.
 void setVicinity(String vicinity)
          A fragment of the Place's address for disambiguation (usually street name and locality).
 void setWebsite(String website)
          The authoritative website for this Place, such as a business' homepage.
 
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

PlaceResult

protected PlaceResult()
use newInstance();

Method Detail

newInstance

public static final PlaceResult newInstance()
Create new PlaceResult instance.


setAddress_Components

public final void setAddress_Components(JsArray<GeocoderAddressComponent> address_components)
The collection of address components for this Place's location.

Parameters:
address_components -

getAddress_Components

public final JsArray<GeocoderAddressComponent> getAddress_Components()
The collection of address components for this Place's location.


setFormated_Address

public final void setFormated_Address(String formatted_address)
The Place's full address.

Parameters:
formatted_address -

getFormatted_Address

public final String getFormatted_Address()
The Place's full address.


setFormatted_Phone_Number

public final void setFormatted_Phone_Number(String formatted_phone_number)
The Place's phone number, formatted according to the number's regional convention.

Parameters:
formatted_phone_number -

getFormatted_Phone_Number

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


setGeometry

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

Parameters:
geometry -

getGeometry

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


setHtml_Attributions

public final void setHtml_Attributions(String html_attributions)
Attribution text to be displayed for this Place result.

Parameters:
html_attributions -

getHtml_Attributions

public final String getHtml_Attributions()
Attribution text to be displayed for this Place result.


setIcon

public final void setIcon(String icon)
URL to an image resource that can be used to represent this Place's category.

Parameters:
icon -

getIcon

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


setId

public final void setId(String id)
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 ids 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.

Parameters:
id -

getId

public final 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 ids 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.


setInternational_Phone_Number

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

Parameters:
international_phone_number -

getInternational_Phone_Number

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


setName

public final void setName(String name)
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 Code Injection

Parameters:
name -

getName

public final 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 Code Injection


setRating

public final void setRating(int rating)
The Place's rating, from 0.0 to 5.0, based on user reviews.

Parameters:
rating -

getRating

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


setReference

public final void setReference(String reference)
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.

Parameters:
reference -

getReference

public final 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.


setTypes

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

Parameters:
types -

getTypes

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


setUrl

public final void setUrl(String url)
URL of the associated Google Place Page.

Parameters:
url -

getUrl

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


setVicinity

public final void setVicinity(String vicinity)
A fragment of the Place's address for disambiguation (usually street name and locality).

Parameters:
vicinity -

getVicinity

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


setWebsite

public final void setWebsite(String website)
The authoritative website for this Place, such as a business' homepage.

Parameters:
website -

getWebsite

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



Follow us on GitHub

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