HERE Android SDK Developer's Guide

Content

The class Content is a member of com.here.android.mpa.venues3d .

Class Summary

public final class Content

extends java.lang.Object

This class encapsulates POI (Point Of Interest) information of the spatial area in a venue.

[For complete information, see the section Class Details]

Method Summary

Table 1. Methods in Content
Methods

public Address getAddress ()

This method retrieves the postal address of the spatial area.

public String getContentId ()

This method retrieves the unique content identifier of the spatial area.

public Map getCustomAttributes ()

Gets the Map<String, Object> of custom attributes.

public String getEmail ()

This method retrieves the email address related to holder of the spatial area.

public String getName ()

This method retrieves the human-readable name related to the holder of the spatial area.

public String getParentCategoryId ()

This method retrieves the parent Category identifier of the spatial area.

public String getPhoneNumber ()

This method returns the phone number related to holder of the spatial area.

public String getPlaceCategoryId ()

This method retrieves the Category identifier of the spatial area.

public List getSearchTags ()

This method retrieves the tags which describes the content holder.

public String getUniqueVenueId ()

This method retrieves the unique venue identifier of the spatial area.

public String getWebsite ()

This method retrieves the URL of the web site related to holder of the spatial area.

Class Details

This class encapsulates POI (Point Of Interest) information of the spatial area in a venue. Examples of POI information are the street address, access information, search tags, space type, category.

Method Details

public Address getAddress ()

This method retrieves the postal address of the spatial area.

Returns:

An object containing the address of the spatial area.

public String getContentId ()

This method retrieves the unique content identifier of the spatial area. Content ID can be used in PlaceRequest(String, String) together with reference name VENUES_CONTENT_ID_REFERENCE_NAME to get reach information about the content. Request can fail if there is no information about the content in Places API.

Returns:

A String containing the content identifier.

public Map getCustomAttributes ()

Gets the Map<String, Object> of custom attributes. Attribute values may be of type java.lang.Boolean , java.lang.Double , java.lang.String , java.lang.List , and java.lang.Map .

Returns:

a java.util.Map<String, Object> from strings to values encoding the custom attributes or null if there are no custom properties.

public String getEmail ()

This method retrieves the email address related to holder of the spatial area.

Returns:

The string containing the email address.

public String getName ()

This method retrieves the human-readable name related to the holder of the spatial area. This can be, for example, the name of a shop.

Returns:

The string containing the name.

public String getParentCategoryId ()

This method retrieves the parent Category identifier of the spatial area. This information can be used, for example, to check the type of the space: shopping, transportation-facility, etc.

Returns:

The string containing the parent category identifier.

public String getPhoneNumber ()

This method returns the phone number related to holder of the spatial area.

Returns:

The string containing the phone number.

public String getPlaceCategoryId ()

This method retrieves the Category identifier of the spatial area. For example, this information can be used to check the type of store, such as food and clothing.

Returns:

The string containing the category identifier.

See also:

getSortedSpacesByCategory(String)

public List getSearchTags ()

This method retrieves the tags which describes the content holder. For example, the tags for an electronics retailer may contain: television, phone, mobile, computer, and so on. The tags can help you search inside a venue ( Venue ) for specific key words.

Returns:

A list of text strings representing the tags.

public String getUniqueVenueId ()

This method retrieves the unique venue identifier of the spatial area. This identifier is constant for each spatial area and can't be changed in later data updates.

Returns:

The string containing the unique venue identifier.

public String getWebsite ()

This method retrieves the URL of the web site related to holder of the spatial area.

Returns:

The string containing the URL.