mapbox / mapbox/mapbox-search-android

Inconsistent Search in V5 vs V6

Open
#259 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Kotlin
Stars
39
Forks
10
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 by comparing the V6ForwardGeocodingRequestOptions request with the V5 MapboxGeocoding request shown in the issue, including autocomplete and query behavior. The issue names no repository files or tests, so first locate the V5 and V6 geocoding request implementations and determine whether equivalent V6 behavior is expected; done means the discrepancy is explained or covered by a confirmed fix or documented limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
api, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.