mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-02 17:07:01 +01:00
Aggiornamento ricerce OSM in italiano
This commit is contained in:
parent
3501e0ffee
commit
6dffe7b481
@ -50,7 +50,7 @@ switch (post('op')) {
|
||||
|
||||
// TODO: da riscrivere con Guzzle e spostare su hook
|
||||
$ch = curl_init();
|
||||
$url = 'https://nominatim.openstreetmap.org/search.php?q='.$indirizzo.'&format=jsonv2';
|
||||
$url = 'https://nominatim.openstreetmap.org/search.php?q='.$indirizzo.'&format=jsonv2&accept-language='.$lang;
|
||||
$user_agent = 'traccar';
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
|
||||
curl_setopt($ch, CURLOPT_URL, $url);
|
||||
|
@ -76,7 +76,7 @@ $("#modals > div").on("shown.bs.modal", function () {
|
||||
|
||||
function initGeocomplete() {
|
||||
$.ajax({
|
||||
url: "https://nominatim.openstreetmap.org/search.php?q=" + encodeURI(input("gaddress").get()) + "&format=jsonv2",
|
||||
url: "https://nominatim.openstreetmap.org/search.php?q=" + encodeURI(input("gaddress").get()) + "&format=jsonv2&accept-language='.$lang.'",
|
||||
type : "GET",
|
||||
dataType: "JSON",
|
||||
success: function(data){
|
||||
|
Loading…
x
Reference in New Issue
Block a user