Class SnapToRoadPoint.Builder

java.lang.Object
com.cercalia.sdk.model.snaptoroad.SnapToRoadPoint.Builder
Enclosing class:
SnapToRoadPoint

public static final class SnapToRoadPoint.Builder extends Object
Builder for SnapToRoadPoint.
  • Method Details

    • coord

      @NotNull public @NotNull SnapToRoadPoint.Builder coord(@NotNull @NotNull Coordinate coord)
      Sets the geographic coordinate.
      Parameters:
      coord - the coordinate
      Returns:
      this builder
    • compass

      @NotNull public @NotNull SnapToRoadPoint.Builder compass(@Nullable @Nullable Integer compass)
      Sets the compass direction.
      Parameters:
      compass - the compass direction (0-360)
      Returns:
      this builder
    • angle

      @NotNull public @NotNull SnapToRoadPoint.Builder angle(@Nullable @Nullable Integer angle)
      Sets the angle/heading.
      Parameters:
      angle - the angle
      Returns:
      this builder
    • speed

      @NotNull public @NotNull SnapToRoadPoint.Builder speed(@Nullable @Nullable Integer speed)
      Sets the speed in km/h.
      Parameters:
      speed - the speed
      Returns:
      this builder
    • attribute

      @NotNull public @NotNull SnapToRoadPoint.Builder attribute(@Nullable @Nullable String attribute)
      Sets the grouping attribute.
      Parameters:
      attribute - the attribute
      Returns:
      this builder
    • build

      @NotNull public @NotNull SnapToRoadPoint build()
      Builds the SnapToRoadPoint.
      Returns:
      a new SnapToRoadPoint
      Throws:
      IllegalStateException - if coord is not set