public abstract static class V6ForwardGeocodingRequestOptions.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract V6ForwardGeocodingRequestOptions.Builder |
autocomplete(java.lang.Boolean autocomplete)
Specify whether to return autocomplete results (true by default).
|
V6ForwardGeocodingRequestOptions.Builder |
boundingBox(com.mapbox.geojson.BoundingBox boundingBox)
Limit results to only those contained within the supplied bounding box.
|
abstract V6ForwardGeocodingRequestOptions |
build()
Build a new
V6ForwardGeocodingRequestOptions object. |
V6ForwardGeocodingRequestOptions.Builder |
country(java.lang.String... country)
Limit results to one or more country.
|
V6ForwardGeocodingRequestOptions.Builder |
language(java.util.Locale language)
Set the language of the text supplied in responses.
|
abstract V6ForwardGeocodingRequestOptions.Builder |
language(java.lang.String language)
Set the language of the text supplied in responses.
|
abstract V6ForwardGeocodingRequestOptions.Builder |
limit(java.lang.Integer limit)
Specify the maximum number of results to return.
|
V6ForwardGeocodingRequestOptions.Builder |
proximity(com.mapbox.geojson.Point proximity)
Bias the response to favor results that are closer to this location.
|
V6ForwardGeocodingRequestOptions.Builder |
types(java.lang.String... types)
Filter results to include only a subset (one or more) of the available feature types.
|
V6ForwardGeocodingRequestOptions.Builder |
withIpAsProximity()
Bias the response to favor results that are closer to the location that is retrieved
by reverse IP lookup.
|
abstract V6ForwardGeocodingRequestOptions.Builder |
worldview(java.lang.String worldview)
Returns features that are defined differently by audiences that belong to various regional,
cultural, or political groups.
|
public abstract V6ForwardGeocodingRequestOptions.Builder autocomplete(@Nullable java.lang.Boolean autocomplete)
When autocomplete is enabled, each user keystroke counts as one request to the Geocoding API. For example, a search for "Cali" would be reflected as four separate Geocoding API requests. To reduce the total requests sent, you can configure your application to only call the Geocoding API after a specific number of characters are typed.
autocomplete - optionally set whether to return autocomplete resultspublic V6ForwardGeocodingRequestOptions.Builder boundingBox(@NonNull com.mapbox.geojson.BoundingBox boundingBox)
boundingBox - the bounding boxpublic V6ForwardGeocodingRequestOptions.Builder country(@NonNull java.lang.String... country)
country - limit geocoding results to one or more countrypublic V6ForwardGeocodingRequestOptions.Builder language(java.util.Locale language)
Options are IETF language tags comprised of a mandatory ISO 639-1 language code and, optionally, one or more IETF subtags for country or script.
language - language of the text supplied in responsespublic abstract V6ForwardGeocodingRequestOptions.Builder language(java.lang.String language)
Options are IETF language tags comprised of a mandatory ISO 639-1 language code and, optionally, one or more IETF subtags for country or script.
language - language of the text supplied in responsespublic abstract V6ForwardGeocodingRequestOptions.Builder limit(java.lang.Integer limit)
limit - the number of returned resultspublic V6ForwardGeocodingRequestOptions.Builder withIpAsProximity()
public V6ForwardGeocodingRequestOptions.Builder proximity(@NonNull com.mapbox.geojson.Point proximity)
proximity - a point to bias the responsepublic V6ForwardGeocodingRequestOptions.Builder types(@NonNull java.lang.String... types)
V6FeatureType.FeatureType are allowed.types - filter results to include only a subset of the available feature typespublic abstract V6ForwardGeocodingRequestOptions.Builder worldview(@NonNull java.lang.String worldview)
Available worldviews are defined in V6Worldview.
If worldview is not set, the us worldview boundaries are returned by default.
worldview - worldview codepublic abstract V6ForwardGeocodingRequestOptions build()
V6ForwardGeocodingRequestOptions object.V6ForwardGeocodingRequestOptions