HERE Android SDK Developer's Guide

Location

The class Location is a member of com.here.android.mpa.search .

Class Summary

public class Location

extends java.lang.Object

Represents the physical location of a Place.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in Location
Constructors

Location (GeoCoordinate coordinate)

Construct a Location with a initial GeoCoordinate .

Method Summary

Table 2. Methods in Location
Methods

public boolean equals (Object obj)

public Address getAddress ()

Gets the Address for the Location .

public GeoBoundingBox getBoundingBox ()

Gets the GeoBoundingBox representing the map view bounding box for the Location.

public GeoCoordinate getCoordinate ()

Gets the GeoCoordinate indicating where the map marker for the Location is rendered.

public String getId ()

Gets the java.lang.String representation of the unique ID for the Location.

public String getReference (String name)

Get the reference identifier for a specific domain.

public int hashCode ()

For documentation, see java.lang.Object

public String toString ()

For documentation, see java.lang.Object

Class Details

Represents the physical location of a Place.

Constructor Details

Location (GeoCoordinate coordinate)

Construct a Location with a initial GeoCoordinate .

Parameters:

  • coordinate

    Initial location coordinate.

Method Details

public boolean equals (Object obj)

Parameters:

  • obj

public Address getAddress ()

Gets the Address for the Location .

Returns:

The Address, or null if unavailable

public GeoBoundingBox getBoundingBox ()

Gets the GeoBoundingBox representing the map view bounding box for the Location.

Returns:

The GeoBoundingBox, or null if unavailable

public GeoCoordinate getCoordinate ()

Gets the GeoCoordinate indicating where the map marker for the Location is rendered.

Returns:

The GeoCoordinate, or null if unavailable

public String getId ()

Gets the java.lang.String representation of the unique ID for the Location.

Returns:

The ID

public String getReference (String name)

Get the reference identifier for a specific domain. For example, a place can have a reference to an extruded building object in the map. The reference identifier can be retrieved by calling this method with name BUILDING_ID_REFERENCE_NAME . NOTE: A reference will not be returned if it has not been added to the request using Request<T>#addReference .

Parameters:

  • name

    The reference name.

Returns:

The reference identifier. If the reference identifier does not exist, an empty String is returned.

public int hashCode ()

For documentation, see java.lang.Object

public String toString ()

For documentation, see java.lang.Object

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.