forked from MapComplete/MapComplete
		
	Actually use the current language in search
This commit is contained in:
		
							parent
							
								
									2fb87d2011
								
							
						
					
					
						commit
						b03ff4f148
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -2,6 +2,7 @@ import { Utils } from "../../Utils" | |||
| import { BBox } from "../BBox" | ||||
| import Constants from "../../Models/Constants" | ||||
| import { FeatureCollection } from "geojson" | ||||
| import Locale from "../../UI/i18n/Locale" | ||||
| 
 | ||||
| export interface GeoCodeResult { | ||||
|     display_name: string | ||||
|  | @ -23,7 +24,7 @@ export class Geocoding { | |||
|         const b = bbox ?? BBox.global | ||||
|         const url = `${ | ||||
|             Geocoding.host | ||||
|         }search?format=json&limit=1&viewbox=${b.getEast()},${b.getNorth()},${b.getWest()},${b.getSouth()}&accept-language=nl&q=${query}` | ||||
|         }search?format=json&limit=1&viewbox=${b.getEast()},${b.getNorth()},${b.getWest()},${b.getSouth()}&accept-language=${Locale.language.data}&q=${query}` | ||||
|         return Utils.downloadJson(url) | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue