HERE Android SDK Developer's Guide

Location

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

Class Summary

public static final class Result.Location

extends java.lang.Object

Location specifies a user-defined location.

Deprecated: As of SDK 3.3.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in Location
Constructors

Location ()

Method Summary

Table 2. Methods in Location
Methods

public String getCity ()

Returns the city of this location as a densely populated municipality.

public String getCountry ()

Returns the name of the state as an ISO 3166-alpha-3 country code.

public String getCounty ()

Returns the second subdivision level below the country.

public java.util.List <CustomAttribute> getCustomAttributes ()

Returns the list of custom attributes

public String getCustomerLocationId ()

Returns the unique identifier provided by the customer of this location.

public String getDescription ()

Returns the description of this location.

public float getDistance ()

Returns the distance to the location from the point used in the query.

public String getEmail ()

Returns the email address of this location.

public String getFaxNumber ()

Returns the fax number of this location.

public GeoCoordinate getGeoCoordinate ()

Returns the Geo-location of the location.

public String getHouseNumber ()

Returns the house number of this location.

public String getName1 ()

Returns the name of the location.

public String getName2 ()

Returns the additional information stored to the name of the location.

public String getName3 ()

Returns the additional information stored to the name of the location.

public String getPhone ()

Returns the phone number of the location.

public String getPostalCode ()

Returns the postal code as defined by the government of the country.

public GeoCoordinate getRouteGeoCoordinate ()

Returns the Geo-location of the location for use in calculation of a route to the location.

public String getState ()

Returns the first subdivision level below the country.

public String getStreetName ()

Returns the street name.

Class Details

Deprecated: As of SDK 3.3.

Use CLE2Result instead.

Location specifies a user-defined location.

Constructor Details

Location ()

Method Details

public String getCity ()

Returns the city of this location as a densely populated municipality.

Returns:

A String representing the city of this Location.

public String getCountry ()

Returns the name of the state as an ISO 3166-alpha-3 country code.

Returns:

A String representing the country code of this Location.

public String getCounty ()

Returns the second subdivision level below the country. For example:

  • USA: County
  • Germany: Kreis

Returns:

A String representing the county of this Location.

public java.util.List <CustomAttribute> getCustomAttributes ()

Returns the list of custom attributes

Returns:

A list of CustomAttribute representing the custom attributes of this Location.

See also:

setCustomAttributeQuery(CustomQueryBuilder)

CustomQueryBuilder

public String getCustomerLocationId ()

Returns the unique identifier provided by the customer of this location.

Returns:

A String representing the unique identifier of this Location.

public String getDescription ()

Returns the description of this location.

Returns:

A String representing the description of this Location.

public float getDistance ()

Returns the distance to the location from the point used in the query.

Returns:

A float representing distance of this Location to the point used in the query.

public String getEmail ()

Returns the email address of this location.

Returns:

A String representing the email address of this Location.

public String getFaxNumber ()

Returns the fax number of this location.

Returns:

A String representing the fax number of this Location.

public GeoCoordinate getGeoCoordinate ()

Returns the Geo-location of the location.

Returns:

A GeoCoordinate representing the Geo-location.

public String getHouseNumber ()

Returns the house number of this location.

Returns:

A String representing the house number of this Location.

public String getName1 ()

Returns the name of the location.

Returns:

A String representing the name of this Location.

public String getName2 ()

Returns the additional information stored to the name of the location.

Returns:

A String representing the addition information of this Location.

public String getName3 ()

Returns the additional information stored to the name of the location.

Returns:

A String representing the addition information of this Location.

public String getPhone ()

Returns the phone number of the location.

Returns:

A String representing the phone number of this Location.

public String getPostalCode ()

Returns the postal code as defined by the government of the country.

Returns:

A String representing the postal code of this Location.

public GeoCoordinate getRouteGeoCoordinate ()

Returns the Geo-location of the location for use in calculation of a route to the location. Usually the same as value as returned by getGeoCoordinate(), but it's possible coordinate is not accessible from the road. In such case, null is returned.

Returns:

A GeoCoordinate representing the Geo-location.

public String getState ()

Returns the first subdivision level below the country. Where commonly used, this is a state code such as CA for California.

Returns:

A String representing the state of this Location.

public String getStreetName ()

Returns the street name.

Returns:

A String representing the street name of this Location.

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.