public abstract static class MapboxTilequery.Builder
extends java.lang.Object
Note to contributors: All optional booleans in this builder use the object Boolean
rather than the primitive to allow for unset (null) values.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract MapboxTilequery.Builder |
accessToken(java.lang.String accessToken)
Required to call when this is being built.
|
abstract MapboxTilequery.Builder |
baseUrl(java.lang.String baseUrl)
Optionally change the APIs base URL to something other then the default Mapbox one.
|
MapboxTilequery |
build()
Build a new
MapboxTilequery object. |
abstract MapboxTilequery.Builder |
dedupe(java.lang.Boolean dedupe)
Determines whether results will be deduplicated or not.
|
abstract MapboxTilequery.Builder |
geometry(java.lang.String geometry)
Queries for a specific geometry type.
|
abstract MapboxTilequery.Builder |
layers(java.lang.String layers)
A comma-separated list of layers to query, rather than querying all layers.
|
abstract MapboxTilequery.Builder |
limit(java.lang.Integer limit)
The number of features between 1 - 50 to return.
|
MapboxTilequery.Builder |
query(com.mapbox.geojson.Point point)
The longitude and latitude to be queried.
|
abstract MapboxTilequery.Builder |
query(java.lang.String query)
The longitude and latitude to be queried.
|
abstract MapboxTilequery.Builder |
radius(java.lang.Integer radius)
The approximate distance in meters to query for features.
|
abstract MapboxTilequery.Builder |
tilesetIds(java.lang.String tilesetIds)
The ID of the tileset being queried.
|
public abstract MapboxTilequery.Builder baseUrl(@NonNull java.lang.String baseUrl)
baseUrl
- base url used as end pointpublic abstract MapboxTilequery.Builder accessToken(@NonNull java.lang.String accessToken)
ServicesException
will be thrown.accessToken
- Mapbox access tokenpublic abstract MapboxTilequery.Builder tilesetIds(java.lang.String tilesetIds)
tilesetIds
- tile set ID(s)public MapboxTilequery.Builder query(@NonNull com.mapbox.geojson.Point point)
point
- query pointpublic abstract MapboxTilequery.Builder query(@NonNull java.lang.String query)
query
- query pointpublic abstract MapboxTilequery.Builder radius(@Nullable java.lang.Integer radius)
radius
- distance in meters to query for featurespublic abstract MapboxTilequery.Builder limit(@Nullable java.lang.Integer limit)
limit
- the number of featurespublic abstract MapboxTilequery.Builder dedupe(@Nullable java.lang.Boolean dedupe)
dedupe
- whether results will be deduplicatedpublic abstract MapboxTilequery.Builder geometry(@Nullable java.lang.String geometry)
geometry
- polygon, linestring, or pointpublic abstract MapboxTilequery.Builder layers(@Nullable java.lang.String layers)
layers
- list of layers to querypublic MapboxTilequery build()
MapboxTilequery
object.