serpapi / public-roadmap

Public Roadmap for SerpApi, LLC (https://serpapi.com)
55 stars 5 forks source link

[Google Maps API] Zoom param does not work. #1279

Open jaenkvf opened 11 months ago

jaenkvf commented 11 months ago

The API results are the same for a same location (coordinates) even if you change the "z" value in the range the documentation mentions. The values for different z values does not match with google Maps pin results sce

tanys123 commented 11 months ago

Hi @jaenkvf, thanks for reporting the issue. Can you provide an example that doesn't work for you?

So far, I am able to alter the result using the zoom. Example with zoom 15.

And if I want to get more specific, I increase the zoom to 21. Example 2 | Google

jaenkvf commented 11 months ago

Hi @tanys123, when you search with a zoom in Google Maps the pins does match with the list of places in the sidebar, so I thought the serpapi API would recovery the pings instead the list of google Maps shown. I think that's the reason the issue I reported. Is there possible fix that?

URL: [https://www.google.com/maps/search/builders/@34.0948989,-118.2316398,16z?authuser=0&entry=ttu]

Map: image

ilyazub commented 10 months ago

https://www.google.com/maps/search/builders/@34.0948989,-118.2316398,16z?authuser=0&entry=ttu

@jaenkvf, thanks for the example and apologies for the delayed reply. Unfortunately, this is what Google Maps returns when visiting the URL directly.

image

Even when manually typing builders after visiting the URL provided, several pins are missing on map.

image (ref: https://www.google.com/maps/search/builders/@34.0941085,-118.3000944,13z/data=!3m1!4b1?authuser=0&hl=en&entry=ttu)

We'll let you know if we find a workaround. Apologies it's not working as you expected.