Class PointDataBuilder

java.lang.Object
com.here.NativeBase
com.here.sdk.mapview.datasource.PointDataBuilder

public final class PointDataBuilder extends NativeBase

Builder of PointData instances.

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.

  • Constructor Details

    • PointDataBuilder

      public PointDataBuilder()

      Creates a builder instance.

  • Method Details

    • withCoordinates

      @NonNull public PointDataBuilder withCoordinates(@NonNull GeoCoordinates coordinates)

      Configures the builder with geodetic coordinates for point to be created.

      Parameters:
      coordinates -

      Geodetic coordinates of the point. Altitude of coordinates is ignored.

      Returns:

      The builder.

    • withAttributes

      @NonNull public PointDataBuilder withAttributes(@NonNull DataAttributes attributes)

      Configures the builder with custom attributes for point to be created.

      Parameters:
      attributes -

      Custom data attributes to be associated with the point.

      Returns:

      The builder.

    • build

      @NonNull public PointData build()

      Builds an instance of PointData and resets the builder instance.

      Returns:

      Instance of PointData created with the configured parameters.