public class CarmenFeature
extends com.mapbox.services.commons.geojson.Feature
| Constructor and Description |
|---|
CarmenFeature() |
| Modifier and Type | Method and Description |
|---|---|
com.mapbox.services.commons.models.Position |
asPosition()
Util to transform center into a Position object
|
static CarmenFeature |
fromJson(java.lang.String json)
Create a CarmenFeature object from JSON.
|
java.lang.String |
getAddress() |
double[] |
getBbox() |
double[] |
getCenter() |
java.util.List<CarmenContext> |
getContext() |
java.lang.String |
getPlaceName() |
double |
getRelevance()
You can use the relevance property to remove rough results if you require a response that
matches your whole query.
|
java.lang.String |
getText() |
void |
setAddress(java.lang.String address) |
void |
setBbox(double[] bbox) |
void |
setCenter(double[] center) |
void |
setContext(java.util.List<CarmenContext> context) |
void |
setPlaceName(java.lang.String placeName) |
void |
setRelevance(double relevance) |
void |
setText(java.lang.String text) |
java.lang.String |
toString()
Human-readable text representing the full result hierarchy
(e.g.
|
addBooleanProperty, addCharacterProperty, addNumberProperty, addProperty, addStringProperty, fromGeometry, fromGeometry, fromGeometry, getBooleanProperty, getCharacterProperty, getGeometry, getId, getNumberProperty, getProperties, getProperty, getStringProperty, getType, hasNonNullValueForProperty, hasProperty, removeProperty, setGeometry, setId, setProperties, toJsonpublic java.lang.String getText()
public java.lang.String getPlaceName()
public double[] getBbox()
public java.lang.String getAddress()
public double[] getCenter()
public java.util.List<CarmenContext> getContext()
public double getRelevance()
public void setText(java.lang.String text)
public void setPlaceName(java.lang.String placeName)
public void setBbox(double[] bbox)
public void setAddress(java.lang.String address)
public void setCenter(double[] center)
public void setContext(java.util.List<CarmenContext> context)
public void setRelevance(double relevance)
public static CarmenFeature fromJson(java.lang.String json)
json - String of JSON making up a carmen feature.public com.mapbox.services.commons.models.Position asPosition()
Position representing the center.public java.lang.String toString()
toString in class java.lang.Object