I am generating nearest Google Places locations based on a user’s geolocation here:
http://sandrayoon.com/UAI/www3/placesstyle.php
When one clicks on a location name, it is creating a dynamic url to request JSON from Google Places for details about the location:
a.href = "https://maps.googleapis.com/maps/api/place/details/json?reference="+place.reference+"&sensor=true&key=xxxxxxxxxxx";
a.innerHTML = place.name;
This URL is just a request for JSON, but what I need is that when the user clicks a location they are taken to another page that begins to process the JSON.
How can I pass this JSON request to a new page that then processes the JSON from Google Places with a user click?
Have you considered using AJAX to obtain that JSON data and processing it right there in the page, without navigating away?