Interface GeoJson

All Known Subinterfaces:
GeoJsonPoint

public interface GeoJson

GeoJSON Geometry represents a Geometry Object as defined in the GeoJSON standard.


Example to create a subtype instance using the builder pattern

     GeoJson geoJson = GeoJson.pointBuilder()
             plusCoordinates(coordinatesBuilder -> coordinatesBuilder)
             .build()
 
  • Method Details

    • getType

      @NotNull @NotNull String getType()
      Returns:
      type
    • deepCopy

      @Nullable static GeoJson deepCopy(@Nullable GeoJson template)
      factory method to create a deep copy of GeoJson
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • pointBuilder

      static GeoJsonPointBuilder pointBuilder()
      builder for point subtype
      Returns:
      builder
    • withGeoJson

      default <T> T withGeoJson(Function<GeoJson,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<GeoJson> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference