I am working with the JSON in which I have to fetch the location of particular city e.g: http://maps.google.com/maps/geo?q=Vanguard,CA,%20United%20States&output=json
Now in PHP how can I write the code to fetch the “Point” data ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
So long as you have
allow_url_fopenon inphp.ini, you can usefile_get_contents(). You can then parse withjson_decode().$jsonis now an array of your JSON data.