Class Feature.Builder

java.lang.Object
com.here.platform.data.client.model.geojson.Feature.Builder
Enclosing class:
Feature

public static final class Feature.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public Feature build()
      Returns:
      the built Feature
    • withBbox

      public Feature.Builder withBbox(List<Double> bbox)
      Parameters:
      bbox - the bounding box of the feature; for meaning of bbox coordinates see https://developer.here.com/documentation/data-client-library/dev_guide/client/publish-data.html#interactive-layer-coords
    • withCustomMember

      public Feature.Builder withCustomMember(String key, Object value)
      Add custom (foreign) members to the Feature object
      Parameters:
      key - the key of the custom member
      value - the value of the custom member
    • withGeometry

      public Feature.Builder withGeometry(Geometry geometry)
      Parameters:
      geometry - the geometry of the feature
    • withId

      public Feature.Builder withId(String id)
      Parameters:
      id - the ID of the feature
    • withProperties

      public Feature.Builder withProperties(Map<String,Object> properties)
      Parameters:
      properties - the property map in the features