PointDataBuilder (API Reference)
Package com.here.sdk.mapview.datasource
Class PointDataBuilder
java.lang.Object
com.here.NativeBase
com.here.sdk.mapview.datasource.PointDataBuilder
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofPointDataand resets the builder instance.withAttributes(DataAttributes attributes) Configures the builder with custom attributes for point to be created.withCoordinates(GeoCoordinates coordinates) Configures the builder with geodetic coordinates for point to be created.
-
Constructor Details
-
PointDataBuilder
public PointDataBuilder()Creates a builder instance.
-
-
Method Details
-
withCoordinates
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
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
Builds an instance of
PointDataand resets the builder instance.- Returns:
Instance of
PointDatacreated with the configured parameters.
-