php – Yahoo Placefinder Geocoding随机停止工作……他们现在不支持吗?

我有一个使用Yahoo Geocoding Placefinder API的网络应用程序,它一直运行到今天早些时候.它只是随机退出工作.他们不再支持了吗?我已经遍布网络了,我找不到任何有关他们的支持,但我的代码不再有效.这是我的代码……

function geocode_yahoo($address,$city,$state,$country) {
    $address = array($address, $city, $state, $country);
    $address = array_filter($address);
    $address = urlencode(implode(', ', $address));

    $appid = 'CYxSRa64';

    $url = 'http://where.yahooapis.com/geocode?location='.$address.'&flags=J&appid='.$appid;
    $data = file_get_contents($url);
    if ($data != '') {
        $data = json_decode($data);
        if ($data && $data->ResultSet && $data->ResultSet->Error == '0' && $data->ResultSet->Found) {
            return (object) array('lat'=>$data->ResultSet->Results[0]->latitude, 'lng'=>$data->ResultSet->Results[0]->longitude); 
        }
    }
    return false;
}

解决方法:

您的代码没有任何问题,该服务已被停止.

请注意,http://where.yahooapis.com现在返回404页面.

该服务将于2012年11月底退休,但仍在运行,以便为开发人员提供时间迁移到替换的Yahoo BOSS服务:http://developer.yahoo.com/boss/geo/

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...