简体   繁体   中英

How to get JSON response from google places API in android?

Can anyone share a snippet that elaborates how to get JSON response ( IN ANDROID) from call to Google Places API? How do I call API? How do I pass parameters and How do I get JSON response?

You could take a look at Sprockets (disclosure: I'm the developer). It provides a Java API on top of the Google Places API, so you can query it using various methods like:

Places.textSearch(Params.create().query("pizza near times square"))

The library also provides a GooglePlaceAutoComplete widget and a GooglePlacesLoader .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM