mapbox / mapbox/mapbox-gl-directions

Show autocomplete addresses that are close to the users geolocation or map view

Open
#270 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged question
Dominant language
JavaScript
Stars
255
Forks
130
PR merge metrics
No merged PRs in 30d

Description

When entering an address. The autocomplete recommendation should be targeted around the map's current position.

If I am in new york and I'm searching for a street in new york. the same street name in brazil should not be the first recommendation for an autocompleted field.

Is there a work around for this?

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

No file or test is named. Start by locating the autocomplete request in the JavaScript directions plugin and determine how the current map position or user geolocation can be passed to the address search. Done means nearby results are prioritized for the active map area or location, with a test or reproducible check covering the New York versus Brazil example.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.