[insert_PHP]
$geoplugin = unserialize( file_get_contents(‘http://www.geoplugin.net/php.gp?ip=’ . $_SERVER[‘REMOTE_ADDR’]) );

if ( is_numeric($geoplugin[‘geoplugin_latitude’]) && is_numeric($geoplugin[‘geoplugin_longitude’]) )
{ $lat = $geoplugin[‘geoplugin_latitude’];
$long = $geoplugin[‘geoplugin_longitude’];
$city = $geoplugin[‘geoplugin_city’];
$country = $geoplugin[‘geoplugin_countryName’];
}

echo “Interesting Places To Visit In $city, $country”;

$jsonurl = “https://api.sandbox.amadeus.com/v1.2/points-of-interest/yapq-search-circle?apikey=LB98wK5iRjlR7ofWto1icfCJ5Ghqi2Xb&latitude=$lat&longitude=$long&radius=500&number_of_results=10″;

$json = file_get_contents($jsonurl,0,null,null);
$json_output = json_decode($json);
echo ”

“;
foreach ( $json_output->points_of_interest as $trend )
{
echo ”

Name : {$trend->title}\n

“;
$tt = $trend->details;
echo $tt->short_description;

echo ”
“;

//echo “Open Now : {$trend->opening_hours->open_now}\n
“;

echo ”
“;

}
echo ”

“;
[/insert_PHP]