Google places API returning only 5 results

Jitender Dev picture Jitender Dev · Dec 26, 2013 · Viewed 12.6k times · Source

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"

https://maps.googleapis.com/maps/api/place/autocomplete/json?input=new&types=%28regions%29&sensor=false&key=API_KEY

Answer

Joel Fernandes picture Joel Fernandes · Dec 26, 2013

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