public class PlaceResult extends MapObject
Constructor and Description |
---|
PlaceResult()
Creates new PlaceResult object.
|
PlaceResult(Map map)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFormattedAddress()
Returns value of formattedAddress property.
|
java.lang.String |
getFormattedPhoneNumber()
Returns value of formattedPhoneNumber property.
|
PlaceGeometry |
getGeometry()
Returns value of geometry property.
|
java.lang.String |
getIcon()
Returns value of icon property.
|
java.lang.String |
getInternationalPhoneNumber()
Returns value of internationalPhoneNumber property.
|
java.lang.String |
getName()
Returns value of name property.
|
boolean |
getPermanentlyClosed()
Returns value of permanentlyClosed property.
|
PlacePhoto[] |
getPhotos()
Returns value of photos property.
|
java.lang.String |
getPlaceId()
Returns value of placeId property.
|
int |
getPriceLevel()
Returns value of priceLevel property.
|
int |
getRating()
Returns value of rating property.
|
java.lang.String[] |
getTypes()
Returns value of types property.
|
java.lang.String |
getUrl()
Returns value of url property.
|
int |
getUtcOffset()
Returns value of utcOffset property.
|
java.lang.String |
getVicinity()
Returns value of vicinity property.
|
java.lang.String |
getWebsite()
Returns value of website property.
|
void |
setAddressComponents(GeocoderAddressComponent[] components)
Sets new value for addressComponents property.
|
void |
setAspects(PlaceAspectRating[] aspects)
Sets new value for aspects property.
|
void |
setFormattedAddress(java.lang.String value)
Sets new value for formattedAddress property.
|
void |
setFormattedPhoneNumber(java.lang.String value)
Sets new value for formattedPhoneNumber property.
|
void |
setGeometry(PlaceGeometry value)
Sets new value for geometry property.
|
void |
setIcon(java.lang.String value)
Sets new value for icon property.
|
void |
setInternationalPhoneNumber(java.lang.String value)
Sets new value for internationalPhoneNumber property.
|
void |
setName(java.lang.String value)
Sets new value for name property.
|
void |
setPermanentlyClosed(boolean value)
Sets new value for permanentlyClosed property.
|
void |
setPhotos(PlacePhoto[] photos)
Sets new value for photos property.
|
void |
setPlaceId(java.lang.String value)
Sets new value for placeId property.
|
void |
setPriceLevel(int value)
Sets new value for priceLevel property.
|
void |
setRating(int value)
Sets new value for rating property.
|
void |
setReviews(PlaceReview[] reviews)
Sets new value for reviews property.
|
void |
setTypes(java.lang.String[] value)
Sets new value for types property.
|
void |
setUrl(java.lang.String value)
Sets new value for url property.
|
void |
setUtcOffset(int value)
Sets new value for utcOffset property.
|
void |
setVicinity(java.lang.String value)
Sets new value for vicinity property.
|
void |
setWebsite(java.lang.String value)
Sets new value for website property.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updateProperty
public PlaceResult()
@Deprecated public PlaceResult(Map map)
map
- owner Map objectpublic java.lang.String getFormattedAddress()
Contains the Place's full address.
setFormattedAddress(java.lang.String)
public void setFormattedAddress(java.lang.String value)
value
- new property valuegetFormattedAddress()
public java.lang.String getFormattedPhoneNumber()
Contains the Place's phone number, formatted according to the number's regional convention.
setFormattedPhoneNumber(java.lang.String)
public void setFormattedPhoneNumber(java.lang.String value)
value
- new property valuegetFormattedPhoneNumber()
public java.lang.String getInternationalPhoneNumber()
Contains the Place's phone number in international format. International format includes the country code, and is prefixed with the plus (+) sign.
setInternationalPhoneNumber(java.lang.String)
public void setInternationalPhoneNumber(java.lang.String value)
value
- new property valuegetInternationalPhoneNumber()
public java.lang.String getName()
Contains 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).
setName(java.lang.String)
public void setName(java.lang.String value)
value
- new property valuegetName()
public java.lang.String getIcon()
Contains the URL to an image resource that can be used to represent this Place's category.
setIcon(java.lang.String)
public void setIcon(java.lang.String value)
value
- new property valuegetIcon()
public java.lang.String getPlaceId()
Contains a unique identifier for a place.
setPlaceId(java.lang.String)
public void setPlaceId(java.lang.String value)
value
- new property valuegetPlaceId()
public java.lang.String getUrl()
Contains the URL of the official Google page for this place. This is the Google-owned page that contains the best available information about the place.
setUrl(java.lang.String)
public void setUrl(java.lang.String value)
value
- new property valuegetUrl()
public java.lang.String[] getTypes()
Contains An array of types for this Place (e.g., ["political", "locality"] or ["restaurant", "establishment"]).
setTypes(java.lang.String[])
public void setTypes(java.lang.String[] value)
value
- new property valuegetTypes()
public java.lang.String getVicinity()
Contains a fragment of the Place's address for disambiguation (usually street name and locality).
setVicinity(java.lang.String)
public void setVicinity(java.lang.String value)
value
- new property valuegetVicinity()
public java.lang.String getWebsite()
Contains the authoritative website for this Place, such as a business' homepage.
setWebsite(java.lang.String)
public void setWebsite(java.lang.String value)
value
- new property valuegetWebsite()
public boolean getPermanentlyClosed()
Contains a flag indicating whether the Place is permanently closed. If the place is not permanently closed, the flag is not present in search or details responses.
setPermanentlyClosed(boolean)
public void setPermanentlyClosed(boolean value)
value
- new property valuegetPermanentlyClosed()
public int getPriceLevel()
The price level of the Place, on a scale of 0 to 4. Price levels are interpreted as 0-Free, 1-Inexpensive, 2-Moderate, 3-Expensive, 4-Very Expensive.
setPriceLevel(int)
public void setPriceLevel(int value)
value
- new property valuegetPriceLevel()
public int getRating()
Contains a rating, between 1 to 5, based on user reviews of this Place.
setRating(int)
public void setRating(int value)
value
- new property valuegetRating()
public int getUtcOffset()
Contains the offset from UTC of the place's current timezone, in minutes. For example, Sydney, Australia in daylight savings is 11 hours ahead of UTC, so the utc_offset will be 660. For timezones behind UTC, the offset is negative. For example, utc_offest is -60 for Cape Verde.
setUtcOffset(int)
public void setUtcOffset(int value)
value
- new property valuegetUtcOffset()
public PlaceGeometry getGeometry()
Contains the Place's geometry-related information.
setGeometry(com.teamdev.jxmaps.PlaceGeometry)
public void setGeometry(PlaceGeometry value)
value
- new property valuegetGeometry()
public void setAddressComponents(GeocoderAddressComponent[] components)
components
- new property valuegetAddressComponents()
public void setAspects(PlaceAspectRating[] aspects)
aspects
- new property valuegetAspects()
public PlacePhoto[] getPhotos()
Contains the photos of this Place. The collection will contain up to ten PlacePhoto objects.
setPhotos(com.teamdev.jxmaps.PlacePhoto[])
public void setPhotos(PlacePhoto[] photos)
photos
- new property valuegetPhotos()
public void setReviews(PlaceReview[] reviews)
reviews
- new property valuegetReviews()