public abstract static class CarmenFeature.Builder
extends java.lang.Object
CarmenFeature.| Constructor and Description | 
|---|
| Builder() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract CarmenFeature.Builder | address(java.lang.String address)A string of the house number for the returned  addressfeature. | 
| abstract CarmenFeature.Builder | bbox(com.mapbox.geojson.BoundingBox bbox)A Feature might have a member named  bboxto include information on the coordinate
 range for it'sFeatures. | 
| abstract CarmenFeature | build()Build a new  CarmenFeatureobject. | 
| abstract CarmenFeature.Builder | context(java.util.List<CarmenContext> contexts)A list representing the hierarchy of encompassing parent features. | 
| abstract CarmenFeature.Builder | geometry(com.mapbox.geojson.Geometry geometry)The geometry which makes up this feature. | 
| abstract CarmenFeature.Builder | id(java.lang.String id)A feature may have a commonly used identifier which is either a unique String or number. | 
| abstract CarmenFeature.Builder | language(java.lang.String language)A string of the IETF language tag of the query's primary language. | 
| abstract CarmenFeature.Builder | matchingPlaceName(java.lang.String matchingPlaceName)A string analogous to the  CarmenFeature.placeName()field that more closely matches the query than
 results in the specified language. | 
| abstract CarmenFeature.Builder | matchingText(java.lang.String matchingText)A string analogous to the  CarmenFeature.text()field that more closely matches the query than
 results in the specified language. | 
| abstract CarmenFeature.Builder | placeName(java.lang.String placeName)A string representing the feature in the requested language, if specified, and its full
 result hierarchy. | 
| abstract CarmenFeature.Builder | placeType(java.util.List<java.lang.String> placeType)A list of feature types describing the feature. | 
| abstract CarmenFeature.Builder | properties(com.google.gson.JsonObject properties)This contains the JSON object which holds the feature properties. | 
| abstract CarmenFeature.Builder | rawCenter(double[] center)A  Pointobject which represents the center point inside theCarmenFeature.bbox()if one is
 provided. | 
| abstract CarmenFeature.Builder | relevance(java.lang.Double relevance)A numerical score from 0 (least relevant) to 0.99 (most relevant) measuring how well each
 returned feature matches the query. | 
| abstract CarmenFeature.Builder | text(java.lang.String text)A string representing the feature in the requested language. | 
public abstract CarmenFeature.Builder bbox(@Nullable com.mapbox.geojson.BoundingBox bbox)
bbox to include information on the coordinate
 range for it's Features. The value of the bbox member MUST be a list of size 2*n
 where n is the number of dimensions represented in the contained feature geometries, with all
 axes of the most southwesterly point followed by all axes of the more northeasterly point.
 The axes order of a bbox follows the axes order of geometries.bbox - a list of double coordinate values describing a bounding boxpublic abstract CarmenFeature.Builder id(@Nullable java.lang.String id)
id - a String containing this features unique identification or null if one wasn't given
           during creation.public abstract CarmenFeature.Builder geometry(@Nullable com.mapbox.geojson.Geometry geometry)
geometry - a single defined Geometry which makes this feature spatially awarepublic abstract CarmenFeature.Builder properties(@Nullable com.google.gson.JsonObject properties)
JsonObject and might be empty if no properties are provided.properties - a JsonObject which holds this features current propertiespublic abstract CarmenFeature.Builder text(@Nullable java.lang.String text)
text - text representing the feature (e.g. "Austin")public abstract CarmenFeature.Builder placeName(@Nullable java.lang.String placeName)
placeName - human-readable text representing the full result hierarchy (e.g. "Austin,
                  Texas, United States")public abstract CarmenFeature.Builder placeType(@Nullable java.util.List<java.lang.String> placeType)
GeocodingCriteria.GeocodingTypeCriteria. Most features have only one type, but if the
 feature has multiple types, (for example, Vatican City is a country, region, and place), all
 applicable types will be provided in the list.placeType - a list containing the place typepublic abstract CarmenFeature.Builder address(@Nullable java.lang.String address)
address feature. Note that unlike the
 address property for poi features, this property is outside the  properties object.address - while the string content isn't guaranteed, and might return null, in many
                cases, this will be the house numberpublic abstract CarmenFeature.Builder rawCenter(@Nullable double[] center)
Point object which represents the center point inside the CarmenFeature.bbox() if one is
 provided.center - a GeoJson Point which defines the center location of this featurepublic abstract CarmenFeature.Builder context(@Nullable java.util.List<CarmenContext> contexts)
contexts - a list made up of CarmenContext which might contain additional
                 information about this specific featurepublic abstract CarmenFeature.Builder relevance(@Nullable java.lang.Double relevance)
relevance - the relevant score between 0 and 1public abstract CarmenFeature.Builder matchingText(@Nullable java.lang.String matchingText)
CarmenFeature.text() field that more closely matches the query than
 results in the specified language. For example, querying "Köln, Germany" with language
 set to English might return a feature with the CarmenFeature.text() "Cologne" and this
 would be "Köln".matchingText - a string containing the matching textpublic abstract CarmenFeature.Builder matchingPlaceName(@Nullable java.lang.String matchingPlaceName)
CarmenFeature.placeName() field that more closely matches the query than
 results in the specified language. For example, querying "Köln, Germany" with language
 set to English might return a feature with the CarmenFeature.placeName() "Cologne, Germany"
 and this would return "Köln, North Rhine-Westphalia, Germany".matchingPlaceName - a string containing the matching place namepublic abstract CarmenFeature.Builder language(@Nullable java.lang.String language)
language - string containing the query's primary languagepublic abstract CarmenFeature build()
CarmenFeature object.CarmenFeature using the provided values in this builder