mapbox / mapbox/mapbox-gl-directions
Show autocomplete addresses that are close to the users geolocation or map view
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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