android - Get all places around 2 kilometers using Google's PlaceDetectionApi -
i using following api places current location,
pendingresult<placelikelihoodbuffer> result = places.placedetectionapi .getcurrentplace(mgoogleapiclient, null); result.setresultcallback(new resultcallback<placelikelihoodbuffer>() { @override public void onresult(placelikelihoodbuffer likelyplaces) { log.v("app", "2. likelyplaces.getcount() : " + likelyplaces.getcount() + ", placetype : " + placetype); places.clear(); googleplace place; (placelikelihood placelikelihood : likelyplaces) { place = new googleplace(); place.setaddress(placelikelihood.getplace() .getaddress()); place.setid(placelikelihood.getplace().getid()); place.setlatlng(placelikelihood.getplace() .getlatlng()); place.setname(placelikelihood.getplace().getname()); place.setphonenumber(placelikelihood.getplace() .getphonenumber()); place.setpricelevel(placelikelihood.getplace() .getpricelevel()); place.setrating(placelikelihood.getplace() .getrating()); places.add(place); } madapter.notifydatasetchanged(); likelyplaces.release(); } });
this 1 returns 20 places, , no photo of place. want know how places around 2 kilometers current location. how place image.
i know can more 20 results using
https://maps.googleapis.com/maps/api/place/search/xml?location=enter latitude,enter longitude&radius=10000&types=store&hasnextpage=true&nextpage()=true&sensor=false&key=enter google_map_key &pagetoken="enter first page token value"
but api have provide server ip api key. need know how can more 20 results using
pendingresult<placelikelihoodbuffer> result = places.placedetectionapi .getcurrentplace(mgoogleapiclient, null);
any highly appreciable.
don't know if found answer should check out if not:
the places api return 20 establishments per query; however, each search can return many 60 results, split across 3 pages
Comments
Post a Comment