HERE Android SDK Developer's Guide

MapPackage

The class MapPackage is a member of com.here.android.mpa.odml .

Class Summary

public final class MapPackage

extends java.lang.Object

Represents a model for obtaining information about offline map packages that can be installed using a MapLoader.

[For complete information, see the section Class Details]

Nested Class Summary

Table 1. Nested Classes in MapPackage
Nested Classes

public static final enumeration MapPackage.InstallationState

Represents values describing the installation state of the MapPackage

Method Summary

Table 2. Methods in MapPackage
Methods

public java.util.List <MapPackage> getChildren ()

Gets the children of the MapPackage , if it has any.

public String getEnglishTitle ()

Gets the English title of the MapPackage .

public int getId ()

Gets the unique identifier for the MapPackage , used for MapLoader operations involving installation or uninstallation.

public InstallationState getInstallationState ()

Gets the current installation state of the MapPackage on the device

public MapPackage getParent ()

Gets the parent of the MapPackage , if it has one.

public long getSize ()

Gets the maximum size, in KB, of the MapPackage , representing the maximum amount of space it will take up on disk.

public String getTitle ()

Gets the title of the MapPackage .

Class Details

Represents a model for obtaining information about offline map packages that can be installed using a MapLoader. Map packages are arranged in a tree hierarchy, which is represented in the parent and children data of the MapPackage model.

Note: the root map package is the world map. If a MapPackage having children is installed, each child will also be installed, allowing the installation of entire regions.

Method Details

public java.util.List <MapPackage> getChildren ()

Gets the children of the MapPackage , if it has any. The returned List is unmodifiable.

Returns:

The java.util.Collections#unmodifiableList(List) of MapPackage children if any exist, an empty list otherwise.

public String getEnglishTitle ()

Gets the English title of the MapPackage .

Returns:

The title in English.

public int getId ()

Gets the unique identifier for the MapPackage , used for MapLoader operations involving installation or uninstallation.

Returns:

The ID for the MapPackage

See also:

installMapPackages(List<Integer>)

uninstallMapPackages(List<Integer>)

public InstallationState getInstallationState ()

Gets the current installation state of the MapPackage on the device

Returns:

MapPackage.InstallationState

public MapPackage getParent ()

Gets the parent of the MapPackage , if it has one.

Returns:

The MapPackage parent if one exists, null otherwise

public long getSize ()

Gets the maximum size, in KB, of the MapPackage , representing the maximum amount of space it will take up on disk.

Note: If this is the first MapPackage installed, it will take up the amount of disk space returned by this method. However, if other MapPackage s have already been installed, the amount of disk space this package will take up is considerably less than the size value returned by this method. This is because there is common data between MapPackage s which will be installed upon first installation. To get an accurate representation of the disk space which will be used for a given installation operation use the onInstallationSize(long, long) callback.

Returns:

The MapPackage size

public String getTitle ()

Gets the title of the MapPackage .

Returns:

The title (the specific language depends on the device Locale )

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.