I'm trying to access Google Places to return an array of 50 restaurant names around a latitude and longitude, but I've hit a brick wall when it comes to making the request. I've got the code to determine the user's latitude and longitude and I've gotten my API key from Google, I just cannot figure out how to make the request via the URL and the Google documentation is silent on how to actually get the data. I feel confident that I'll be able to figure out how to parse the JSON return, but getting the data has proven more difficult/confusing than I imagined.
If it matters, I'm using MaxMind to get the user's latitude and longitude. Here is the script that I have so far:
<script type="text/javascript" src="https://www.google.com/jsapi?key=api_key"></script>
<script type="text/javascript" src="http://j.maxmind.com/app/geoip.js"></script>
<script type="text/javascript">
latitude = geoip_latitude();
longitude = geoip_longitude();
</script>