-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
we can do it Double time faster. #56
Comments
hey, the /search endpoint seemed more stable and less contextual for the user session. do you have an /entity request with formatted address as input? |
Can you send an example request with the full URL? |
I am using PHP for my package. Here there is an example. I am pretty sure that the position are the same than the response that you are getting with your code since I also had to deal with json_decode(str_replace(")]}'", "",$googleResponse)); |
Hey, sry for the delay. the Did you also adapt the |
Hey man, I am sorry for the delay. I was so busy working on different projects that I did not have the time to investigate that part, so I am not working on that now. I was trying to build a package for Laravel so the community could use it since it looks like we have nothing for php yet. |
Sorry for bringing an old thread back to life, but any progress on this? I love the functionality of this library, but it's just too slow at times. Looking into using the /entity endpoint, with the pb that @1quintana used, seems to return a lot of information that can replace a lot of the helper functions. Ex: returns the exact popularity of each restaurant, and is specific for the location. It's perfect 😍 If someone much more skilled can chime in and take a stab at forking off of this and using the /entity endpoint, it would be much appreciated! I'm going to take a look at parsing this in the meantime. Thanks and great work! |
Just did a bit more work on it and found that the pb parameter is essentially the same between requests: Format is as follows: The only part that varies is this: 1x405873813!2x3463614540 , which I assume to be the corners of the map that Google creates, but when I leave these the same and use an address in California (im in MI), the call still works. @m-wrzr can you take a look into this again? Thanks so much, |
hey @zhongeric here is my old testing code, maybe it's helpful to you: https://pastebin.com/VnLS4kzk (sry super messy and undocumented) depending on your usecase you could also just skip the /details calls, most of the info is in /search but it would break google tos even more probably. |
Hello,
This is a wonderful job, I was wondering why did you use the url https://www.google.com/search instead of https://www.google.com/maps/preview/entity? which looks to be almost twice faster.
I am working on a package for PHP Laravel and It looks like google expose the population time in both urls, but I was confused about which one to use.
The text was updated successfully, but these errors were encountered: