Map Supreme with Vantage User Locator suddenly stopped
Hi Vipul,
Remember you gave me this code a while back?
<?php
$arg = array('w'=>'100%','h'=>'400px','zoom'=>'8');
$ip = $_SERVER['REMOTE_ADDR'];
$geocode=wp_remote_get("http://freegeoip.net/json/".$ip);
$output= json_decode($geocode['body']);
$lat = $output->latitude;
$lng = $output->longitude;
//print_r($output);
$arg['clat']=$lat;
$arg['clng']=$lng;
do_action('wpw_vantage_gmap_code',$arg);
?>
Was working fine and then it suddenly stopped this morning....I think there may be an issue around this 2 lines of code here:
$geocode=wp_remote_get("http://freegeoip.net/json/".$ip);
$output= json_decode($geocode['body']);
I suspect it is not able to query that website. DO you know of any paid sites that do the same task? I don't want to have to rely on anything free as its a commercial site we are running
Please advise
Gmac