mapbox / mapbox/mapbox-gl-geocoder

Impossible to find China with language 'fr'

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

Nobody has claimed this yet.

auto-triaged bug
Dominant language
JavaScript
Stars
388
Forks
181
PR merge metrics
No merged PRs in 30d

Description

When language is set to 'fr' you need to type 'République populaire de Chine' to find China, typing only 'Chine' or 'China' doesn't return the country even though everyone call it like that.

Also I've noticed that on the demo page https://docs.mapbox.com/playground/geocoding/ you can remove language without it default to browser language but I can't find how to do it.

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

Reproduce the French-language China search in the linked geocoding demo, then compare it with the behavior when language is omitted. Trace how the geocoder control passes language to the Mapbox Geocoding API and determine whether both China aliases should work and how the language setting can be unset. Done means the reported searches work and the language option can be removed without defaulting to the browser language.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.