mapbox-search-android
mapbox-search-android copied to clipboard
Inconsistent Search in V5 vs V6
Currently using the V6ForwardGeocodingRequestOptions methods as such:
query = "italian restaurants";
location = "buffalo ny";
var requestOptions = V6ForwardGeocodingRequestOptions.builder("italian restaurants in buffalo ny")
.autocomplete(false)
.build();
var newStuff = MapboxV6Geocoding.builder(token, requestOptions).build();
Sample Response when I get the name from the Feature object:
"North Buffalo"
This search is not giving me the same results as in v5. Sample V5 Request:
var client = MapboxGeocoding.builder()
.accessToken(token)
.mode(GeocodingCriteria.MODE_PLACES)
.query("italian restaurants in buffalo ny")
.autocomplete(true)
.build();
Sample response:
Romeo & Juliet's Bakery & Caffé, 1292 Hertel Ave, Buffalo, New York 14216, United States
Is there an equivalent request in V6 as there was in V5?
Thank you!