public interface GeocodingServiceRx
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Observable<java.util.List<com.mapbox.services.api.geocoding.v5.models.GeocodingResponse>> |
getBatchObservable(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)
Observable-based interface
|
io.reactivex.Observable<com.mapbox.services.api.geocoding.v5.models.GeocodingResponse> |
getObservable(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)
Observable-based interface
|
@GET(value="/geocoding/v5/{mode}/{query}.json")
io.reactivex.Observable<com.mapbox.services.api.geocoding.v5.models.GeocodingResponse> getObservable(@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)
userAgent - The usermode - mapbox.places or mapbox.places-permanent for enterprise 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.@GET(value="/geocoding/v5/{mode}/{query}.json")
io.reactivex.Observable<java.util.List<com.mapbox.services.api.geocoding.v5.models.GeocodingResponse>> getBatchObservable(@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)
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.