HERE Android SDK Developer's Guide

Place

The class Place is a member of com.here.android.mpa.nlp .

Class Summary

public final class Place

   implements java.io.Serializable

extends java.lang.Object

Information about a place required by NLP.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in Place
Constructors

Place (String name, GeoCoordinate coordinate)

Constructor

Place (Place other)

Copy constructor

Method Summary

Table 2. Methods in Place
Methods

public boolean equals (Object other)

For documentation, see java.lang.Object

public Address getAddress ()

Get address of the place

public GeoCoordinate getCoordinate ()

Get coordinate of the place

public String getName ()

Get name of the place

public PlaceLink getPlaceLink ()

Get PlaceLink of the place

public int hashCode ()

For documentation, see java.lang.Object

public Place setAddress (Address address)

Set address of the place

public Place setCoordinate (GeoCoordinate coordinate)

Set coordinates of the place

public Place setName (String name)

Set name of the place

public Place setPlaceLink (PlaceLink placeLink)

Set PlaceLink of the place

Class Details

Information about a place required by NLP. Information may be obtained from search or other sources and transformed into this by application.

IMPORTANT: Natural language processor is a Beta feature. The related classes are subject to change without notice.

Constructor Details

Place (String name, GeoCoordinate coordinate)

Constructor

Parameters:

  • name

    The place name, must not be null or empty

  • coordinate

    The Geo-Coordinates of the place, must not null and must be valid

Place (Place other)

Copy constructor

Parameters:

  • other

    Place to copy from

Method Details

public boolean equals (Object other)

For documentation, see java.lang.Object

Parameters:

  • other

public Address getAddress ()

Get address of the place

Returns:

The place address

public GeoCoordinate getCoordinate ()

Get coordinate of the place

Returns:

The coordinate of the place

public String getName ()

Get name of the place

Returns:

The place name

Get PlaceLink of the place

Returns:

The place PlaceLink

public int hashCode ()

For documentation, see java.lang.Object

public Place setAddress (Address address)

Set address of the place

Parameters:

  • address

    address of the place

Returns:

Place

public Place setCoordinate (GeoCoordinate coordinate)

Set coordinates of the place

Parameters:

Returns:

Place

public Place setName (String name)

Set name of the place

Parameters:

  • name

    The place name

Returns:

Place

Set PlaceLink of the place

Parameters:

Returns:

Place