mapbox-java icon indicating copy to clipboard operation
mapbox-java copied to clipboard

Search query not supported in MapboxV6Geocoding

Open vchittar opened this issue 8 months ago • 0 comments

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!

vchittar avatar Jun 25 '24 20:06 vchittar