Class JsonFeature

java.lang.Object
com.graphhopper.util.JsonFeature

public class JsonFeature extends Object
This class defines a properties where a geometry is associated. Typically read from GeoJSON but also from in-memory is possible.
Author:
Peter Karich
  • Constructor Details

    • JsonFeature

      public JsonFeature()
    • JsonFeature

      public JsonFeature(String id, String type, org.locationtech.jts.geom.Envelope bbox, org.locationtech.jts.geom.Geometry geometry, Map<String,Object> properties)
  • Method Details

    • getId

      public String getId()
    • getType

      public String getType()
    • getBBox

      public org.locationtech.jts.geom.Envelope getBBox()
    • getGeometry

      public org.locationtech.jts.geom.Geometry getGeometry()
    • getProperties

      public Map<String,Object> getProperties()
    • getProperty

      public Object getProperty(String key)
    • setId

      public void setId(String id)
    • setBBox

      public void setBBox(org.locationtech.jts.geom.Envelope bbox)
    • setGeometry

      public void setGeometry(org.locationtech.jts.geom.Geometry geometry)
    • setProperties

      public void setProperties(Map<String,Object> properties)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isValidId

      public static boolean isValidId(String name)