Skip to content

Commit fb40177

Browse files
committed
Allow multilingual search in autocomplete
- Remove lang parameter from Photon API in geocodeSuggestions - Users can now search in any language (English, Greek, Turkish, etc.) - Language search is no longer restricted by current UI language - Examples: search "Nicosia" while UI is in Greek, or "Λευκωσία" while in English Made-with: Cursor
1 parent a12884e commit fb40177

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,10 +783,10 @@
783783
function geocodeSuggestions(query) {
784784
// Photon (komoot) supports prefix/partial matching, unlike Nominatim.
785785
// We restrict to the Cyprus bounding box and return up to 8 suggestions.
786+
// No lang parameter — allows search in any language (English, Greek, Turkish, etc.)
786787
const params = new URLSearchParams({
787788
q: query,
788789
limit: '8',
789-
lang: currentLang === 'tr' ? 'tr' : currentLang === 'el' ? 'el' : 'en',
790790
bbox: '32.27,34.58,34.60,35.18', // Cyprus: minLon,minLat,maxLon,maxLat
791791
});
792792
return fetch(`https://photon.komoot.io/api/?${params}`, {

0 commit comments

Comments
 (0)