下面是我正在使用的示例JSON输出:
http://maps.google.com/maps/api/geocode/json?components=postal_code:90210&sensor=false下面是从这个位置提取纬度值的尝试:
$postalLong = $jsonOutput>results[0]->formatted_address[0]->location[1]->lng; 我试过几种不同的方法,但都没有用。如何将34.1030032值应用于此变量?
发布于 2014-04-09 21:16:48
我猜你错配了。试试这个-
$json->results[0]->geometry->location->lat;https://stackoverflow.com/questions/22974062
复制相似问题