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 Boolean
isCar
private final Geometry
geometry
private final BoundingBox
boundingBox
private final Map<String, Object>
attributes
private final String
title
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()
custom
if not providedfinal Boolean
isCar()
final Geometry
getGeometry()
final BoundingBox
getBoundingBox()
final Map<String, Object>
getAttributes()
final String
getTitle()
final Map<String, Object>
getExtraData()
key for extra value 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()
Type code of the feature which can later be used for filtering,
custom
if not provided
-
getGeometry
final Geometry getGeometry()
Geometry of the feature
-
getBoundingBox
final BoundingBox getBoundingBox()
Bounding box of the feature
-
getAttributes
final Map<String, Object> getAttributes()
Attributes of the feature
-
getExtraData
final Map<String, Object> getExtraData()
key for extra value
-
getAttribute
final Object getAttribute(String key)
-
-
-
-