public abstract static class GeocodingResponse.Builder
extends java.lang.Object
GeocodingResponse
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract GeocodingResponse.Builder |
attribution(java.lang.String attribution)
A string attributing the results of the Mapbox Geocoding API to Mapbox and links to Mapbox's
terms of service and data sources.
|
abstract GeocodingResponse |
build()
Build a new
GeocodingResponse object. |
abstract GeocodingResponse.Builder |
features(java.util.List<CarmenFeature> features)
A list of the CarmenFeatures which contain the results and are ordered from most relevant to
least.
|
abstract GeocodingResponse.Builder |
query(java.util.List<java.lang.String> query)
A list of space and punctuation-separated strings from the original query.
|
public abstract GeocodingResponse.Builder query(@NonNull java.util.List<java.lang.String> query)
query
- a list containing the original querypublic abstract GeocodingResponse.Builder features(@NonNull java.util.List<CarmenFeature> features)
features
- a list of CarmenFeature
s which each represent an individual result
from the querypublic abstract GeocodingResponse.Builder attribution(@NonNull java.lang.String attribution)
attribution
- information about Mapbox's terms of service and the data sourcespublic abstract GeocodingResponse build()
GeocodingResponse
object.GeocodingResponse
using the provided values in this builder