Place API results maximum 20 ?

480 views
Skip to first unread message

KwangJin So

unread,
Jun 17, 2011, 9:16:38 AM6/17/11
to google-map...@googlegroups.com
Hello,

Place API is the result of the maximum 20?
If the result of 20 a lot more than what can we do?


Below is the information in the Code description.

"results" contains an array of Places, with information about each. See Place Search Results for information about these results. 
The Places API returns up to 20 establishment results. Additionally, political results may be returned which serve to identify the area of the request.


Thanks,

Lemon Zin.

Rossko

unread,
Jun 17, 2011, 10:14:27 AM6/17/11
to Google Maps JavaScript API v3
> Place API is the result of the maximum 20?

Yes, that is what the documentation you found says

> If the result of 20 a lot more than what can we do?

If you want more than twenty results, you will have to use some other
service. I don't know of any.

JKurtock

unread,
Jun 17, 2011, 2:44:05 PM6/17/11
to Google Maps JavaScript API v3
Perhaps what KwangJin So wants is not a greater number of results, but
"more" results for a certain area. In that case, you just need to
reduce the bounds (or location/radius) in the Place Search Request.
http://code.google.com/apis/maps/documentation/javascript/places.html#place_search_requests
You will still get no more than 20 results, but they will be
concentrated in a smaller area (and therefore have finer
"granularity.")

If you want to find a coffee shop in Mountain View, it is better to
specify a tight bounds (encompassing only Mountain View) rather than
one that encompasses all of California.

- Jeff

Zin

unread,
Jun 17, 2011, 9:34:23 PM6/17/11
to Google Maps JavaScript API v3
Rossko, JKurtock

Thank you for reply.
I understood that the results are limited to 20.

KwangJin.

On Jun 18, 3:44 am, JKurtock <jkurt...@gmail.com> wrote:
> Perhaps what KwangJin So wants is not a greater number of results, but
> "more" results for a certain area.  In that case, you just need to
> reduce the bounds (or location/radius) in the Place Search Request.http://code.google.com/apis/maps/documentation/javascript/places.html...

KwangJin So

unread,
Jun 17, 2011, 11:11:41 PM6/17/11
to Google Maps JavaScript API v3
I have one more question.

Result in 20 I do not have a place to find, what should I do?
Being in that place, if the result of the 21st?

Also, some large radius where to find the result exceeded 20 when the implement paging, what should I do?




--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.


Reply all
Reply to author
Forward
0 new messages