public class DangerousSlowdown extends Bearing implements Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
DangerousSlowdown.Direction
Represents a direction of the slowdown.
|
static class |
DangerousSlowdown.Severity
Represents a severity of the slowdown.
|
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<DangerousSlowdown> |
CREATOR
Parcelable creator for this type.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o) |
DangerousSlowdown.Direction |
getDirection()
Gets the direction of the slowdown.
|
int[] |
getGeoIds()
Gets the slowdown geography IDs.
|
String |
getId()
Gets the ID of the slowdown.
|
long |
getIdNum() |
GeoPoint |
getLocation()
Gets the start position of the slowdown.
|
String |
getMileMarker()
Gets mile marker.
|
Date |
getOccurrenceStartTimeUtc()
Gets a slowdown start time.
|
String |
getRoadName()
Gets the name of the road.
|
String |
getSegmentCode()
Gets the segment code.
|
int |
getSegmentOffset()
Gets the segment offset.
|
String |
getSegmentType()
Gets the segment type.
|
DangerousSlowdown.Severity |
getSeverity()
Gets the severity of the slowdown.
|
int |
getSpeedAt()
Gets the speed at the rapid slowdown event.
|
int |
getSpeedBefore()
Gets the speed leading up to the segment.
|
int |
getSpeedDelta()
Gets the speed difference between
DangerousSlowdown.getSpeedBefore() and DangerousSlowdown.getSpeedAt() . |
int |
getVersion()
Gets the version of the slowdown.
|
int |
hashCode() |
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
getBearingAngle, getDistance, getDistanceKM, getLatitude, getLongitude, setDistance
public static final Parcelable.Creator<DangerousSlowdown> CREATOR
public String getId()
public long getIdNum()
public int getVersion()
public DangerousSlowdown.Severity getSeverity()
DangerousSlowdown.Severity.UNKNOWN
if information is not available.public int getSpeedBefore()
public int getSpeedAt()
public int getSpeedDelta()
DangerousSlowdown.getSpeedBefore()
and DangerousSlowdown.getSpeedAt()
.@Nullable public GeoPoint getLocation()
getLocation
in class Bearing
public int[] getGeoIds()
@Nullable public String getSegmentType()
@Nullable public String getSegmentCode()
public int getSegmentOffset()
-1
if segment information is not available.@Nullable public Date getOccurrenceStartTimeUtc()
@NonNull public DangerousSlowdown.Direction getDirection()
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.