Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent Search in V5 vs V6 #259

Open
vchittar opened this issue Jun 25, 2024 · 0 comments
Open

Inconsistent Search in V5 vs V6 #259

vchittar opened this issue Jun 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@vchittar
Copy link

vchittar commented Jun 25, 2024

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 vchittar added the bug Something isn't working label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant