Class SnapToRoadPoint.Builder
java.lang.Object
com.cercalia.sdk.model.snaptoroad.SnapToRoadPoint.Builder
- Enclosing class:
- SnapToRoadPoint
Builder for SnapToRoadPoint.
-
Method Summary
Modifier and TypeMethodDescription@NotNull SnapToRoadPoint.BuilderSets the angle/heading.@NotNull SnapToRoadPoint.BuilderSets the grouping attribute.@NotNull SnapToRoadPointbuild()Builds the SnapToRoadPoint.@NotNull SnapToRoadPoint.BuilderSets the compass direction.@NotNull SnapToRoadPoint.Buildercoord(@NotNull Coordinate coord) Sets the geographic coordinate.@NotNull SnapToRoadPoint.BuilderSets the speed in km/h.
-
Method Details
-
coord
Sets the geographic coordinate.- Parameters:
coord- the coordinate- Returns:
- this builder
-
compass
Sets the compass direction.- Parameters:
compass- the compass direction (0-360)- Returns:
- this builder
-
angle
Sets the angle/heading.- Parameters:
angle- the angle- Returns:
- this builder
-
speed
Sets the speed in km/h.- Parameters:
speed- the speed- Returns:
- this builder
-
attribute
Sets the grouping attribute.- Parameters:
attribute- the attribute- Returns:
- this builder
-
build
Builds the SnapToRoadPoint.- Returns:
- a new SnapToRoadPoint
- Throws:
IllegalStateException- if coord is not set
-