HTML
2
Вклад в тег
$q = "Киргизия ивановка";
$url = "http://nominatim.openstreetmap.org/search?q=".urlencode($q)."&format=json&polygon_geojson=1";
$ch = curl_init($url); // such as http://example.com/example.xml
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, 0);
$data = curl_exec($ch);
curl_close($ch);
$a = json_decode($data);