Class SnapToRoadSegment.Builder
java.lang.Object
com.cercalia.sdk.model.snaptoroad.SnapToRoadSegment.Builder
- Enclosing class:
- SnapToRoadSegment
Builder for SnapToRoadSegment.
-
Method Summary
Modifier and TypeMethodDescription@NotNull SnapToRoadSegment.BuilderSets the grouping attribute.@NotNull SnapToRoadSegmentbuild()Builds the SnapToRoadSegment.@NotNull SnapToRoadSegment.Builderdistance(double distance) Sets the distance in kilometers.@NotNull SnapToRoadSegment.BuilderSets whether speeding was detected.@NotNull SnapToRoadSegment.BuilderspeedingLevel(@Nullable Integer speedingLevel) Sets the speeding level.@NotNull SnapToRoadSegment.BuilderSets the WKT geometry.
-
Method Details
-
wkt
Sets the WKT geometry.- Parameters:
wkt- the WKT geometry- Returns:
- this builder
-
distance
Sets the distance in kilometers.- Parameters:
distance- the distance- Returns:
- this builder
-
attribute
Sets the grouping attribute.- Parameters:
attribute- the attribute- Returns:
- this builder
-
speeding
Sets whether speeding was detected.- Parameters:
speeding- the speeding flag- Returns:
- this builder
-
speedingLevel
@NotNull public @NotNull SnapToRoadSegment.Builder speedingLevel(@Nullable @Nullable Integer speedingLevel) Sets the speeding level.- Parameters:
speedingLevel- the speeding level- Returns:
- this builder
-
build
Builds the SnapToRoadSegment.- Returns:
- a new SnapToRoadSegment
- Throws:
IllegalStateException- if wkt is not set
-