public interface GeocodingServiceRx
Modifier and Type | Method and Description |
---|---|
io.reactivex.Observable<List<com.mapbox.services.api.geocoding.v5.models.GeocodingResponse>> |
getBatchObservable(String userAgent,
String mode,
String query,
String accessToken,
String country,
String proximity,
String types,
Boolean autocomplete,
String bbox,
String limit,
String language)
Observable-based interface
|
io.reactivex.Observable<com.mapbox.services.api.geocoding.v5.models.GeocodingResponse> |
getObservable(String userAgent,
String mode,
String query,
String accessToken,
String country,
String proximity,
String types,
Boolean autocomplete,
String bbox,
String limit,
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") String userAgent, @Path(value="mode") String mode, @Path(value="query") String query, @Query(value="access_token") String accessToken, @Query(value="country") String country, @Query(value="proximity") String proximity, @Query(value="types") String types, @Query(value="autocomplete") Boolean autocomplete, @Query(value="bbox") String bbox, @Query(value="limit") String limit, @Query(value="language") 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<List<com.mapbox.services.api.geocoding.v5.models.GeocodingResponse>> getBatchObservable(@Header(value="User-Agent") String userAgent, @Path(value="mode") String mode, @Path(value="query") String query, @Query(value="access_token") String accessToken, @Query(value="country") String country, @Query(value="proximity") String proximity, @Query(value="types") String types, @Query(value="autocomplete") Boolean autocomplete, @Query(value="bbox") String bbox, @Query(value="limit") String limit, @Query(value="language") 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.© 2015–2016 Mapbox. All rights reserved.