Class SnapToRoadPoint
java.lang.Object
com.cercalia.sdk.model.snaptoroad.SnapToRoadPoint
Represents a GPS track point for snap-to-road map matching.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for SnapToRoadPoint. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull SnapToRoadPoint.Builderbuilder()Creates a new builder for SnapToRoadPoint.@Nullable IntegergetAngle()Returns the angle/heading.@Nullable StringReturns the grouping attribute for segment identification.@Nullable IntegerReturns the compass direction (0-360 degrees).@NotNull CoordinategetCoord()Returns the geographic coordinate.@Nullable IntegergetSpeed()Returns the speed in km/h.static @NotNull SnapToRoadPointof(double lat, double lng) Creates a simple point with only coordinates.static @NotNull SnapToRoadPointof(double lat, double lng, int speed) Creates a point with coordinates and speed.toString()
-
Method Details
-
getCoord
Returns the geographic coordinate.- Returns:
- the coordinate (never null)
-
getCompass
Returns the compass direction (0-360 degrees).- Returns:
- the compass direction, or null if not set
-
getAngle
Returns the angle/heading.- Returns:
- the angle, or null if not set
-
getSpeed
Returns the speed in km/h.- Returns:
- the speed, or null if not set
-
getAttribute
Returns the grouping attribute for segment identification.- Returns:
- the attribute, or null if not set
-
builder
Creates a new builder for SnapToRoadPoint.- Returns:
- a new Builder instance
-
of
Creates a simple point with only coordinates.- Parameters:
lat- the latitudelng- the longitude- Returns:
- a new SnapToRoadPoint
-
of
Creates a point with coordinates and speed.- Parameters:
lat- the latitudelng- the longitudespeed- the speed in km/h- Returns:
- a new SnapToRoadPoint
-
toString
-