public interface GeocodingService
Modifier and Type | Method and Description |
---|---|
retrofit2.Call<List<GeocodingResponse>> |
getBatchCall(String userAgent,
String mode,
String query,
String accessToken,
String country,
String proximity,
String types,
Boolean autocomplete,
String bbox,
String limit,
String language)
Call-based interface
|
retrofit2.Call<GeocodingResponse> |
getCall(String userAgent,
String mode,
String query,
String accessToken,
String country,
String proximity,
String types,
Boolean autocomplete,
String bbox,
String limit,
String language)
Call-based interface
|
@GET(value="/geocoding/v5/{mode}/{query}.json") retrofit2.Call<GeocodingResponse> getCall(@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") retrofit2.Call<List<GeocodingResponse>> getBatchCall(@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.