public class CarmenFeatureCollection
extends com.mapbox.services.commons.geojson.BaseFeatureCollection
Modifier | Constructor and Description |
---|---|
|
CarmenFeatureCollection() |
protected |
CarmenFeatureCollection(List<CarmenFeature> features)
Protected constructor.
|
Modifier and Type | Method and Description |
---|---|
static CarmenFeatureCollection |
fromFeatures(List<CarmenFeature> features)
Create a
FeatureCollection from a List of features. |
String |
getAttribution()
Mapbox attribution.
|
List<CarmenFeature> |
getFeatures()
Get the List containing all the features within collection.
|
List<String> |
getQuery()
A place name for forward geocoding or a coordinate pair (longitude, latitude location) for
reverse geocoding.
|
void |
setAttribution(String attribution) |
void |
setQuery(List<String> query)
A place name for forward geocoding or a coordinate pair (longitude, latitude location)
for reverse geocoding.
|
public CarmenFeatureCollection()
protected CarmenFeatureCollection(List<CarmenFeature> features)
features
- List of Feature
.public List<String> getQuery()
public void setQuery(List<String> query)
query
- The search terms used.public String getAttribution()
public void setAttribution(String attribution)
attribution
- String with Mapbox attribution.public List<CarmenFeature> getFeatures()
public static CarmenFeatureCollection fromFeatures(List<CarmenFeature> features)
FeatureCollection
from a List of features.features
- List of Feature
FeatureCollection
© 2015–2016 Mapbox. All rights reserved.