HERE Android SDK Developer's Guide

MapAccessor

The class MapAccessor is a member of com.here.android.mpa.electronic_horizon .

Class Summary

public final class MapAccessor

extends java.lang.Object

Represents a class that provides information about any link.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in MapAccessor
Constructors

MapAccessor ()

Constructor.

Method Summary

Table 2. Methods in MapAccessor
Methods

public java.util.List <electronic_horizon.Link> getConnectedLinks (Link link)

Retrieves the list of connected links of the link.

public LinkInformation getLinkInformation (Link link)

Retrieves the information of the link.

public GeoPolyline getLinkPolyline (Link link)

Retrieves the geometry of the link.

public MetaData getMetaData (Link link)

Retrieves the meta data of the link.

public String getPVID (Link link)

Retrieves the PVID of the link.

public java.util.List <electronic_horizon.SlopeDataPoint> getSlopeDataPoints (Link link)

Retrieves the list of slope data points of the link.

Class Details

Represents a class that provides information about any link.

Constructor Details

MapAccessor ()

Constructor.

Method Details

Retrieves the list of connected links of the link.

Parameters:

  • link

    The link from which the connected links will be retrieved.

Returns:

The list of connected links if the operation was successful, otherwise the exception is thrown.

Throws:

  • IllegalArgumentException

    The link parameter is Invalid.

  • DataNotReadyException

    The map data is not loaded yet.

  • RuntimeException

    Unexpected error.

Retrieves the information of the link.

Parameters:

  • link

    The link from which the information will be retrieved.

Returns:

The linkInformation if the operation was successful, otherwise the exception is thrown.

Throws:

  • IllegalArgumentException

    The link parameter is Invalid.

  • DataNotReadyException

    The map data is not loaded yet.

  • RuntimeException

    Unexpected error.

Retrieves the geometry of the link.

Parameters:

  • link

    The link from which the geometry will be retrieved.

Returns:

The geometry if the operation was successful, otherwise the exception is thrown.

Throws:

  • IllegalArgumentException

    The link parameter is Invalid.

  • DataNotReadyException

    The map data is not loaded yet.

  • RuntimeException

    Unexpected error.

Retrieves the meta data of the link.

Parameters:

  • link

    The link from which the meta data will be retrieved.

Returns:

The meta data if the operation was successful, otherwise the exception is thrown.

Throws:

  • IllegalArgumentException

    The link parameter is Invalid.

  • DataNotReadyException

    The map data is not loaded yet.

  • RuntimeException

    Unexpected error.

Retrieves the PVID of the link.

Parameters:

  • link

    The link from which the PVID will be retrieved.

Returns:

The PVID if the operation was successful, otherwise the exception is thrown.

Throws:

  • IllegalArgumentException

    The link parameter is Invalid.

  • DataNotReadyException

    The map data is not loaded yet.

  • RuntimeException

    Unexpected error.

Retrieves the list of slope data points of the link.

Note: The slope information will not be available if the shared disk cache is used. In this case RuntimeException will be thrown. To avoid this use isolated disk cache instead. To use isolated disk cache, check the documentation of setIsolatedDiskCacheRootPath function

Parameters:

  • link

    The link from which the slope data points will be retrieved.

Returns:

The list of slope data points if the operation was successful, otherwise the exception is thrown.

Throws:

  • IllegalArgumentException

    The link parameter is Invalid.

  • DataNotReadyException

    The map data is not loaded yet.

  • RuntimeException

    Unexpected error.