Java
- 11 ответов
- 0 вопросов
8
Вклад в тег
private function callNominatim($dLat, $dLon, $iZoom) {
if ($iZoom<10)
$iZoom=12;
$request_url= sprintf("http://nominatim.openstreetmap.org/reverse?format=json&lat=%.6F&lon=%.6F&zoom=%01d&addressdetails=1",$dLat,$dLon,$iZoom);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $request_url);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);
return $response;
}
public class Exercise {
/*skipped fields*/
public void loadScene() {
Stage WindowExercise=new Stage();
panel1=FXMLLoader.load(getClass().getResource("src//application//Window1(Otgimanie).fxml"));
Scene scene1=new Scene(panel1,600,270);
WindowExercise.setScene(scene1);
WindowExercise.show();
}
public static void main(String[] args) {
Excercise ex = new Exercise();
ex.loadScene();
}
}