public class ExtendedAttribute
extends java.lang.Object
Place
.
This extensible collection of attributes that can include the following items with these identifier values:
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttribution()
Gets a ready-to-display (HTML formatted) string containing the source attribution text for
this place.
|
java.lang.String |
getId()
Gets the identifier for the
ExtendedAttribute . |
java.lang.String |
getLabel()
Gets the localized display label for the
ExtendedAttribute . |
java.lang.String |
getText()
Gets the
String representation of ExtendedAttribute information, which can be
displayed directly on the client device. |
Link |
getVia()
Gets a
Link object to the external website of the supplier of the information. |
int |
hashCode() |
public java.lang.String getId()
ExtendedAttribute
.public java.lang.String getLabel()
ExtendedAttribute
.public java.lang.String getText()
String
representation of ExtendedAttribute
information, which can be
displayed directly on the client device.
Note: if the text represents a list of items, the items are separated by a line break entity
(<br/>
if the text format is HTML-encoded or newline
if the text format is
plain).
RichText
display textpublic java.lang.String getAttribution()
The Places API gives access to content that is provided by a number of sources. Client applications must display the source attribution next to the content. This requirement forms part of the terms and conditions of the API.
The code snippet below demonstrates how to display the string in an Android TextView
TextView textView = (TextView) findViewById(R.id.attributionText); textView.setMovementMethod(LinkMovementMethod.getInstance());
public Link getVia()
Link
object to the external website of the supplier of the information. This
link must be used for attribution when rich text attribution is not being used.Link
object to the external website of the supplier of the informationpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object