pagetoken #4

Closed
opened 2014-02-26 00:01:39 +00:00 by jonathanstanley · 2 comments
jonathanstanley commented 2014-02-26 00:01:39 +00:00 (Migrated from github.com)

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);
        }
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. - Google did fix the issue of their "lying". You can send all the parameters and Google will now ignore those other parameters. - I don't see where pagetoken parameter is set.... obviously won't work unless it gets set somewhere. - The pagetoken parameter requires some time to activate. Details here: https://developers.google.com/places/documentation/search#PlaceSearchPaging Here's how I was able to get it to work (added just above `$querystring = '';`): ``` php if ($this->pagetoken !== null) { $parameters['pagetoken'] = $this->pagetoken; sleep(3); } ```
jonathanstanley commented 2014-02-26 00:09:52 +00:00 (Migrated from github.com)

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

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 2014-02-26 15:10:32 +00:00 (Migrated from github.com)

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

heya @bristweb I'm going to move your comment to a new issue. Seems like a great idea for a future enhancement!
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: joshtronic/php-googleplaces#4
No description provided.