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

Search query not supported in MapboxV6Geocoding #1584

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

Search query not supported in MapboxV6Geocoding #1584

vchittar opened this issue Jun 25, 2024 · 0 comments

Comments

@vchittar
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant