{"action":"opened","issue":{"url":"https://api.github.com/repos/perliedman/leaflet-control-geocoder/issues/129","repository_url":"https://api.github.com/repos/perliedman/leaflet-control-geocoder","labels_url":"https://api.github.com/repos/perliedman/leaflet-control-geocoder/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/perliedman/leaflet-control-geocoder/issues/129/comments","events_url":"https://api.github.com/repos/perliedman/leaflet-control-geocoder/issues/129/events","html_url":"https://github.com/perliedman/leaflet-control-geocoder/issues/129","id":155676274,"number":129,"title":" Extrapolate the contry name and language of the address returned","user":{"login":"tbrcrl","id":16580030,"avatar_url":"https://avatars.githubusercontent.com/u/16580030?v=3","gravatar_id":"","url":"https://api.github.com/users/tbrcrl","html_url":"https://github.com/tbrcrl","followers_url":"https://api.github.com/users/tbrcrl/followers","following_url":"https://api.github.com/users/tbrcrl/following{/other_user}","gists_url":"https://api.github.com/users/tbrcrl/gists{/gist_id}","starred_url":"https://api.github.com/users/tbrcrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbrcrl/subscriptions","organizations_url":"https://api.github.com/users/tbrcrl/orgs","repos_url":"https://api.github.com/users/tbrcrl/repos","events_url":"https://api.github.com/users/tbrcrl/events{/privacy}","received_events_url":"https://api.github.com/users/tbrcrl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-19T08:03:48Z","updated_at":"2016-05-19T08:03:48Z","closed_at":null,"body":"Hi, I am using the geocoder to localize a point on a map and I have two questions\r\n\r\n1. Extrapolate the contry name\r\nI would like to write the corresponding country name in a text box using the Nominatim service and the htmlTemplate option (L.Control.Geocoder.Nominatim(options)). I suppose this is the right way to do the job.\r\nSomebody has an example of code using the htmlTemplate option or another appropriate option to extrapolate the country name and write it in a separate text box?\r\nHere below the code that I am currently using and that works fine.\r\n\r\n```javascript\r\nvar map = L.map('map').locate({setView: true, maxZoom: 6}),\r\ngeocoder = L.Control.Geocoder.nominatim(),\r\ncontrol = L.Control.geocoder({\r\n  geocoder: geocoder, placeholder: \"Search on map\", errorMessage: \"No matching results found\"\r\n}).addTo(map),\r\nmarker;\r\nL.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {\r\n    attribution: '&copy; <a href=\"http://osm.org/copyright\">OpenStreetMap</a> contributors'\r\n}).addTo(map);\r\nmap.on('click', function(e) {\r\n  geocoder.reverse(e.latlng, map.options.crs.scale(map.getZoom()), function(results) {\r\n    var r = results[0];\r\n    if (r) {\r\n      if (marker) {\r\n        marker.\r\n          setLatLng(r.center).\r\n          setPopupContent(r.html || r.name).\r\n          openPopup();\r\n      } else {\r\n        marker = L.marker(r.center).bindPopup(r.name).addTo(map).openPopup();\r\n      }\r\n    }\r\n  })\r\n})\r\n```\r\n![extrapolate-country-name](https://cloud.githubusercontent.com/assets/16580030/15386529/9f6717d4-1da8-11e6-9ca8-b348991b8e79.png)\r\n\r\n2. Geocoder address language\r\nI see that the language of the address returned by the geocoder is related to the browser language. Is there a way to lock the address language to, for example, English?\r\nThanks\r\n"}}