public interface GeocodingService
Modifier and Type | Method and Description |
---|---|
retrofit2.Call<java.util.List<GeocodingResponse>> |
getBatchCall(java.lang.String userAgent,
java.lang.String mode,
java.lang.String query,
java.lang.String accessToken,
java.lang.String country,
java.lang.String proximity,
java.lang.String types,
java.lang.Boolean autocomplete,
java.lang.String bbox,
java.lang.String limit,
java.lang.String language,
java.lang.String reverseMode,
java.lang.Boolean fuzzyMatch)
Constructs the html call using the information passed in through the
MapboxGeocoding.Builder . |
retrofit2.Call<GeocodingResponse> |
getCall(java.lang.String userAgent,
java.lang.String mode,
java.lang.String query,
java.lang.String accessToken,
java.lang.String country,
java.lang.String proximity,
java.lang.String types,
java.lang.Boolean autocomplete,
java.lang.String bbox,
java.lang.String limit,
java.lang.String language,
java.lang.String reverseMode,
java.lang.Boolean fuzzyMatch)
Constructs the html call using the information passed in through the
MapboxGeocoding.Builder . |
@GET(value="/geocoding/v5/{mode}/{query}.json") retrofit2.Call<GeocodingResponse> getCall(@Header(value="User-Agent") java.lang.String userAgent, @Path(value="mode") java.lang.String mode, @Path(value="query") java.lang.String query, @Query(value="access_token") java.lang.String accessToken, @Query(value="country") java.lang.String country, @Query(value="proximity") java.lang.String proximity, @Query(value="types") java.lang.String types, @Query(value="autocomplete") java.lang.Boolean autocomplete, @Query(value="bbox") java.lang.String bbox, @Query(value="limit") java.lang.String limit, @Query(value="language") java.lang.String language, @Query(value="reverseMode") java.lang.String reverseMode, @Query(value="fuzzyMatch") java.lang.Boolean fuzzyMatch)
MapboxGeocoding.Builder
.userAgent
- The usermode
- mapbox.places or mapbox.places-permanent for batch and permanent geocoding.query
- a location; a place name for forward geocoding or a coordinate pair
(longitude, latitude location) for reverse geocodingaccessToken
- Mapbox access token.country
- ISO 3166 alpha 2 country codes, separated by commas.proximity
- Location around which to bias results.types
- Filter results by one or more type.autocomplete
- True if you want auto complete.bbox
- Optionally pass in a bounding box to limit results in.limit
- Optionally pass in a limit the amount of returning results.language
- The locale in which results should be returned.reverseMode
- Set the factors that are used to sort nearby results.fuzzyMatch
- Set whether to allow the geocoding API to attempt exact matching or not.@GET(value="/geocoding/v5/{mode}/{query}.json") retrofit2.Call<java.util.List<GeocodingResponse>> getBatchCall(@Header(value="User-Agent") java.lang.String userAgent, @Path(value="mode") java.lang.String mode, @Path(value="query") java.lang.String query, @Query(value="access_token") java.lang.String accessToken, @Query(value="country") java.lang.String country, @Query(value="proximity") java.lang.String proximity, @Query(value="types") java.lang.String types, @Query(value="autocomplete") java.lang.Boolean autocomplete, @Query(value="bbox") java.lang.String bbox, @Query(value="limit") java.lang.String limit, @Query(value="language") java.lang.String language, @Query(value="reverseMode") java.lang.String reverseMode, @Query(value="fuzzyMatch") java.lang.Boolean fuzzyMatch)
MapboxGeocoding.Builder
.userAgent
- The usermode
- mapbox.places-permanent for batch geocoding.query
- a location; a place name for forward geocoding or a coordinate pair
(longitude, latitude location) for reverse geocodingaccessToken
- Mapbox access token.country
- ISO 3166 alpha 2 country codes, separated by commas.proximity
- Location around which to bias results.types
- Filter results by one or more type.autocomplete
- True if you want auto complete.bbox
- Optionally pass in a bounding box to limit results in.limit
- Optionally pass in a limit the amount of returning results.language
- The locale in which results should be returned.reverseMode
- Set the factors that are used to sort nearby results.fuzzyMatch
- Set whether to allow the geocoding API to attempt exact matching or not.