title: AutoComplete Google Maps API - direct JSON call
body: <p>I'm trying to develop a jQuery mobile application which uses the Google Places API. Essentially what I'm doing is adding an input to a jQuery mobile page , then hooking it up to Google Places to autocomplete an address, and potentially grab the co-ordinates of that address. </p>
  
  <p>I had initial success in <a href="https://google-developers.appspot.com/maps/documentation/javascript/examples/places-autocomplete" rel="nofollow">modifying the demos available here</a>, which utilise Google's own Autocomplete functionality inside their 'Places Library'. However, from a UI perspective, on mobile devices this implementation won't work - you need to essentially tap a relatively small result, and hitting the return button on the phone doesn't select the first result. </p>
  
  <p>Enter:  <a href="http://www.raymondcamden.com/index.cfm/2012/3/27/Example-of-Autocomplete-in-jQuery-Mobile" rel="nofollow">http://www.raymondcamden.com/index.cfm/2012/3/27/Example-of-Autocomplete-in-jQuery-Mobile</a></p>
  
  <p>Perfect for what I need, only I'm now trying to get the data returned to be via the Google Places API, using the autocomplete API. See sample API call I'm using:</p>
  
  <p><a href="https://maps.googleapis.com/maps/api/place/autocomplete/json?input=Amoeba&amp;types=establishment&amp;sensor=true&amp;key=myKeyHERE" rel="nofollow">https://maps.googleapis.com/maps/api/place/autocomplete/json?input=Amoeba&amp;types=establishment&amp;sensor=true&amp;key=myKeyHERE</a></p>
  
  <p>This doesn't however return any GEO information - just addresses. Is there a different method or call I need to use? With the native <a href="https://developers.google.com/maps/documentation/javascript/places#adding_autocomplete" rel="nofollow">(Places Library) implementation</a>, I had access to a whole bunch of data, it didn't require an API key, and didn't need to work within bounds. Not sure if re-geoCoding the resultset seems like the best approach.</p>