Class GeoJson.Builder

  • Enclosing class:
    GeoJson

    public static class GeoJson.Builder
    extends Object
    A GeoJSON builder.
    • Method Detail

      • add

        public GeoJson.Builder add​(Feature feature)
        Add a feature. Use static factory methods in Feature to create new features.
        Parameters:
        feature - to add
        Returns:
        this builder
        See Also:
        Feature
      • bbox

        public GeoJson.Builder bbox​(double[] bbox)
        Set the optional bbox (bounding box) field of this feature collection. See the GeoJSON specification for details on bounding boxes.
        Parameters:
        bbox - to set
        Returns:
        this builder