-
Notifications
You must be signed in to change notification settings - Fork 11
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
[Google Maps API] z
zoom param presence causes map to be incorrectly placed
#2340
Comments
Thank you for your report and for sharing your findings, @davidalejandroaguilar. We'll investigate this. Just to point out, based on your example: Without the z parameter: The URL is adjusted to this after a few seconds https://www.google.com/maps/search/things+to+do+Bogota,+Colombia/@4.2820925,-74.2225269,351455m/data=!3m2!1e3!4b1?hl=es-419&entry=ttu&g_ep=EgoyMDI1MDExNS4wIKXMDSoASAFQAw%3D%3D Whereas Google Maps uses m (meter) instead of z. We've logged this as well in this thread: #2196 |
I think this may be location based depending on your IP address - when I open https://www.google.com/maps/search/things+to+do+Bogota%2C+Colombia/@4.7110,74.0721,16?hl=es-419 it adds the |
Another note that might be helpful @davidalejandroaguilar - when you include the |
Thank you for sharing your findings @davidalejandroaguilar. We'll investigate it further. I'm currently seeing a different behavior. |
The
z
zoom param on thell
param for the Geographic Location filtering is broken. It forces you to add az
character, otherwise Serpapi complains. However:Google Maps URL example
With z param
https://www.google.com/maps/search/things+to+do+Bogota%2C+Colombia/@4.7110,74.0721,16z?hl=es-419
Without z param
https://www.google.com/maps/search/things+to+do+Bogota%2C+Colombia/@4.7110,74.0721,16?hl=es-419
Note It's worth mentioning that the zoom parameter on these Google Maps URLs doesn't seem to affect zoom in any way. e.g.
Without z param and setting it to
2
Produces the same result as above.
https://www.google.com/maps/search/things+to+do+Bogota%2C+Colombia/@4.7110,74.0721,2?hl=es-419
SerpApi URL examples:
With z param
https://serpapi.com/playground?engine=google_maps&q=things+to+do+Bogota%2C+Colombia&ll=%404.7110%2C74.0721%2C14z&hl=es-419&type=search
Without z param
https://serpapi.com/playground?engine=google_maps&q=things+to+do+Bogota%2C+Colombia&ll=%404.7110%2C74.0721%2C14&hl=es-419&type=search
SerpApi Geographic Location param
The text was updated successfully, but these errors were encountered: