Google places API returning only 5 results
Solution 1
From the documentation:
A JSON response contains two root elements:
"status" contains metadata on the request. See Status Codes below.
"predictions" contains an array of places, with information about the place. The Places API returns up to 5 results.
Source: https://developers.google.com/places/web-service/autocomplete#place_autocomplete_responses
Solution 2
Google specifies that they only give up to 5 results for place API. You can check below image where google accepts this. Google Place API Doc
Jitender Dev
I'm a Creative technologist, Self-motivated and Results-oriented professional with proven leadership, interpersonal and problem-solving skills. I love to keep my hands dirty in coding, designing solutions, code review & in most of all kind of tech work. I'm skilled at project delivery, project management, methodologies, training, mentoring, assessments, and quality reviews. I have an extensive experience of developing innovative and complex Android Apps. Excellent presentation, written and verbal communication skills. Flexible to adapt new skills and environments. Worked on different kinds of mobile applications and have good experience including : eCommerce Real Time Chat Health(HIPPA,HL7) Education Taxi Booking, Bus Ticket Booking,Train Ticket Booking(IRCTC) Mobile Recharge. Location & GPS Based Real Time Android Application Payment Gateway Integration Cloud to device messaging Finance/Banking Android Application Enterprise Android Application Web Service Based Android Apps Calendar based Android Apps Video/Audio Streaming Android Apps Social Networking (Facebook/Twitter) BarCode Scanner based Android Apps Mobile Ads based Android Apps Parse NFC
Updated on July 18, 2022Comments
-
Jitender Dev almost 2 years
I am using Google places API, It returns only top 5 search results. Is there any way to increase the count.
e.g. URL
I have searched for keyword "new"
-
Jitender Dev over 10 yearsI have gone through the document and and found the same. Thanks.
-
SureshCS50 over 8 years@codeRider did you find any solution for this..? I just gone through that above mentioned link.. :(
-
Pavan Alapati about 7 years@codeRider even I have a same quetion. Actually I used to get more than 5 results previously. But suddenly I am getting only 5 results returning by google.
-
Aaron Cicali almost 6 yearsYou can retrieve all reviews if you're the business owner using Google My Business API. developers.google.com/my-business/content/…