mapbox / mapbox/mapbox-search-ios

Nearby gas stations missing from search results

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

Nobody has claimed this yet.

Dominant language
Swift
Stars
28
Forks
28
PR merge metrics
No merged PRs in 30d

Description

For multiple locations in the UK, the nearest gas stations appear to be missing from search results. Using 1.0.0-rc.8, here is my config for the MapboxSearchController:

func setupSearchController() -> MapboxSearchController {
    let formatter = MKDistanceFormatter()
    formatter.unitStyle = .abbreviated
    formatter.units = self.settings?.distanceUnit == .miles ? .imperial : .metric
    let configuration = Configuration(hideCategorySlots: true, distanceFormatter: formatter)
    return MapboxSearchController(configuration: configuration)
}

Actual nearby gas stations (circled results not found by Mapbox):
SCR-20240409-lpsv

Mapbox results:
SCR-20240409-lqga

Also, charging stations returns results from thousands of miles away? Mapbox only recognises 6 charging stations in the UK?
SCR-20240409-ltjk

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 the MapboxSearchController setup and its Configuration, then reproduce the issue using UK locations and the gas-station and charging-station categories described here. Compare the returned results with the nearby stations shown in the screenshots; done means the expected nearby stations are returned and charging results are geographically relevant.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile-dev, search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.