HERE Android SDK Developer's Guide

SafetySpotInfo

The class SafetySpotInfo is a member of com.here.android.mpa.mapping .

Class Summary

public final class SafetySpotInfo

extends java.lang.Object

Contains information about a particular safety spot.

[For complete information, see the section Class Details]

Nested Class Summary

Table 1. Nested Classes in SafetySpotInfo
Nested Classes

public static final enumeration SafetySpotInfo.Type

Method Summary

Table 2. Methods in SafetySpotInfo
Methods

public GeoCoordinate getCoordinate ()

Gets the position GeoCoordinate for the safety spot.

public int getHeading1Deg ()

Returns the heading, in degrees, representing the operational direction of the safety spot camera.

public int getHeading2Deg ()

Returns the heading for the ( possible ) second camera.

public int getSpeedLimit1 ()

Returns the speed limit the camera on heading 1 is triggered.

public int getSpeedLimit2 ()

Returns the speed limit the camera on heading 2 is triggered.

public Type getType ()

Returns the type of this safety spot.

public String toString ()

For documentation, see java.lang.Object

Class Details

Contains information about a particular safety spot. Common types of safety spots include speed camera and red light camera.

Method Details

public GeoCoordinate getCoordinate ()

Gets the position GeoCoordinate for the safety spot.

Returns:

position of the stop.

public int getHeading1Deg ()

Returns the heading, in degrees, representing the operational direction of the safety spot camera. The operational direction is the direction of travel for vehicles to be detected by the camera, regardless of whether the camera photographs the front or rear of the vehicle. If no heading is returned (the returned value is zero), then this means the camera operates in all directions.

A safety spot may have two cameras, for more information see getHeading2Deg().

Returns:

The heading, 1 - 359, 1 = north increases clockwise.

public int getHeading2Deg ()

Returns the heading for the ( possible ) second camera. If heading 1 is not zero, and heading 2 is zero, then there is only one camera, using the heading 1.

Returns:

The heading, 1 - 359, 1 = north increases clockwise.

public int getSpeedLimit1 ()

Returns the speed limit the camera on heading 1 is triggered.

Returns:

The speed limit, in meters per second

public int getSpeedLimit2 ()

Returns the speed limit the camera on heading 2 is triggered.

Returns:

The speed limit, in meters per second

public Type getType ()

Returns the type of this safety spot.

Returns:

the safetyspot type

public String toString ()

For documentation, see java.lang.Object