Package com.pointrlabs.core.geojson
Class Feature
-
- All Implemented Interfaces:
public class Feature extends LocationAware
Feature is spatially bounded entity.
-
-
Field Summary
Fields Modifier and Type Field Description private final String
id
private final String
eid
private final String
typeCode
private final Geometry
geometry
private final BoundingBox
boundingBox
private final Map<String, Object>
attributes
private final Map<String, Object>
extraData
private final Location
location
-
Method Summary
Modifier and Type Method Description final String
getId()
final String
getEid()
final String
getTypeCode()
final Geometry
getGeometry()
final BoundingBox
getBoundingBox()
final Map<String, Object>
getAttributes()
final Map<String, Object>
getExtraData()
final Object
getAttribute(String key)
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final String
toJson()
-
-
Constructor Detail
-
Feature
Feature(String json)
-
Feature
Feature(String typeCode, String externalIdentifier, Geometry geometry, Location location, Map<String, Object> attributes)
- Parameters:
typeCode
- type code of the feature which can later be used for filtering,custom
if not providedexternalIdentifier
- internally a uuid is generated and used but you can choose to have another identifier for third party integrations.geometry
- Defines the boundaries of the Featurelocation
- Defines the location of the Featureattributes
- Extra parameters can be fed into the object.
-
-
Method Detail
-
getId
final String getId()
String GUID value representing internal identifier. Corresponds to
fid
property of Feature returned from POI API
-
getTypeCode
final String getTypeCode()
-
getGeometry
final Geometry getGeometry()
-
getBoundingBox
final BoundingBox getBoundingBox()
-
getAttributes
final Map<String, Object> getAttributes()
-
getExtraData
final Map<String, Object> getExtraData()
-
getAttribute
final Object getAttribute(String key)
-
-
-
-