mapbox / mapbox/mapbox-java

Search query not supported in MapboxV6Geocoding

Open
#1,584 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
438
Forks
117
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with V6ForwardGeocodingRequestOptions and MapboxV6Geocoding, then compare them with the V5 request using MODE_PLACES, query, and autocomplete. Determine whether V6 has an equivalent for the restaurant search shown; done means the equivalent behavior is supported or the limitation and supported usage are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.