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(String json)
Create a CarmenFeature object from JSON.
|
String |
getAddress() |
double[] |
getBbox() |
double[] |
getCenter() |
List<CarmenContext> |
getContext() |
String |
getPlaceName() |
double |
getRelevance()
You can use the relevance property to remove rough results if you require a response that
matches your whole query.
|
String |
getText() |
void |
setAddress(String address) |
void |
setBbox(double[] bbox) |
void |
setCenter(double[] center) |
void |
setContext(List<CarmenContext> context) |
void |
setPlaceName(String placeName) |
void |
setRelevance(double relevance) |
void |
setText(String text) |
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, toJson
public String getText()
public String getPlaceName()
public double[] getBbox()
public String getAddress()
public double[] getCenter()
public List<CarmenContext> getContext()
public double getRelevance()
public void setText(String text)
public void setPlaceName(String placeName)
public void setBbox(double[] bbox)
public void setAddress(String address)
public void setCenter(double[] center)
public void setContext(List<CarmenContext> context)
public void setRelevance(double relevance)
public static CarmenFeature fromJson(String json)
json
- String of JSON making up a carmen feature.public com.mapbox.services.commons.models.Position asPosition()
Position
representing the center.© 2015–2016 Mapbox. All rights reserved.