apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

Get more than 20 results using google places. #321

Closed dagosi closed 10 years ago

dagosi commented 11 years ago

First of all, thanks for this awesome gem.

I'm currently using places_for_address to get places from google. Is there a way to get more than 20? I know that the Google API uses a pagetoken attribute to paginate through results. Is this possible using the gem? If not, would be nice to add another parameter which can indicate what page to fetch. Then, the results wouldn't be attached to only 20 places.

Cheers.

dagosi commented 10 years ago

Is this issue resolved? I'd like to know. Thanks.

apneadiving commented 10 years ago

I included code from a pull request and I'm no expert. The gem was becoming a pile of different code from different authors, so I cleaned it a bunch in v2.

Actually I cant answer and it's out of the current scope. You'll have to check google documentations for this

dagosi commented 10 years ago

Ok, thanks @apneadiving. Btw, great gem! Good job!