Need help decoding JSON output with PHP -
here sample json output working with:
http://maps.google.com/maps/api/geocode/json?components=postal_code:90210&sensor=false
here attempt pull latitude value location:
$postallong = $jsonoutput>results[0]->formatted_address[0]->location[1]->lng;
i have tried several variations not working. how can have apply 34.1030032
value variable?
i guess have mismatched it. try -
$json->results[0]->geometry->location->lat;
Comments
Post a Comment