HERE Android SDK Developer's Guide

SlopeDataPoint

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

Class Summary

public final class SlopeDataPoint

extends java.lang.Object

Represents a slope data points for specific link in electronic horizon.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in SlopeDataPoint
Constructors

SlopeDataPoint (double relativePositionOnLink, double slopePercent)

Constructor

Method Summary

Table 2. Methods in SlopeDataPoint
Methods

public double getRelativePositionOnLink ()

public double getSlopePercent ()

Class Details

Represents a slope data points for specific link in electronic horizon.

Constructor Details

SlopeDataPoint (double relativePositionOnLink, double slopePercent)

Constructor

Parameters:

  • relativePositionOnLink
  • slopePercent

Method Details

Returns:

The relative position along the link, where 0.0 represents the start of the link and 1.0 represents the end of the link.

public double getSlopePercent ()

Returns:

The slope value. It can also be positive or negative infinity in case of a steep incline.