"https://freegeoip.app/json/" . $_SERVER['REMOTE_ADDR'], CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => array( "accept: application/json", "content-type: application/json" ), CURLOPT_FAILONERROR => true, )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); //初期値設定 $isTourist=false; if ($err) { // echo "cURL Error #:" . $err; // APIエラーの場合 旅マエを表示 // echo "var isTourist = false;"; } else { $decoded_json = json_decode($response); $isTourist = $decoded_json->country_code === 'JP' ? true :false; //echo "var isTourist = '" . $isTourist . "';"; } ?> Kyoto City Official Travel Guide ">
FAQFAQHazard InfoHazard Info

By using this site, you agree to the use of cookies.
See our privacy policy for more information. This site uses machine translation, so content is not always accurate. Please note that translated content may differ from the original English page.