joshtronic / php-googleplaces

PHP Wrapper for the Google Places API
MIT License
84 stars 38 forks source link

pagetoken #4

Closed jonathanstanley closed 10 years ago

jonathanstanley commented 10 years ago

First, thank you for posting your work! I also had the same issue with the other project and yours definitely worked much more easily. Sorry for not doing a pull request but I wanted to get this to you before I forgot.

1 a very small issue: capitalization is not consistent throughout and sometimes your demo doesn't use the correct capitalization. ex: you say to use $google_places->pageToken when it should be $google_places->pagetoken

2 The pagetoken doesn't work.

Here's how I was able to get it to work (added just above $querystring = '';):

if ($this->pagetoken !== null)
        {
            $parameters['pagetoken'] = $this->pagetoken;
            sleep(3);
        }
jonathanstanley commented 10 years ago

One other thing on a similar vein, but not really specific to this project. Google definitely limits a particular search to 60 results. I had hoped that I could just spend more of my quota in order to get an exhaustive dataset, but apparently that isn't possible without a bunch of legwork. The only way I can think of to accomplish this is to do a whole ton of small radius searches - resulting in something like this: http://cdn2.techworld.com/cmsdata/slideshow/3310742/09_crop_circles_thumb555.jpg

joshtronic commented 10 years ago

heya @bristweb I'm going to move your comment to a new issue. Seems like a great idea for a future enhancement!