google-maps-builder icon indicating copy to clipboard operation
google-maps-builder copied to clipboard

Places API lookup bug

Open DevinWalker opened this issue 10 years ago • 11 comments

When you query a ton of place types in a radius it results in a JS error and quits working leaving the spinner in place.

Screenshot of console error:

google-maps-bug

DevinWalker avatar Jun 12 '15 20:06 DevinWalker

Present in both the front and backend: "Failed to load resource: the server responded with a status of 400 (Bad Request)"

DevinWalker avatar Jun 12 '15 20:06 DevinWalker

Where in the admin is this? Is this under the map when creating a new map "Google Places" meta box with the checkboxes?

royboy789 avatar Jun 15 '15 03:06 royboy789

Yeah, exactly. Create a new map. Select ALL places to display within a radius of 3,000 meters. You should see the map start creating place markers then fail with the JS error posted above in console.

DevinWalker avatar Jun 15 '15 20:06 DevinWalker

@DevinWalker - I"m not sure but have you checked the API restriction on calls / minute, I know the API has some restrictions like that, not sure if this is the cause, in which case we'd have to find a way to either slow it down or limit results before it keeps on requesting.

royboy789 avatar Jun 15 '15 20:06 royboy789

I think I may have done something like that awhile back... I know I did that for geocoding and maybe places too

DevinWalker avatar Jun 15 '15 20:06 DevinWalker

I have a thought that this error occurs when a lookup happens with corrupt data. I haven't been able to reproduce on maps with a small number of markers

DevinWalker avatar Jul 29 '15 03:07 DevinWalker

I'm removing from 2.0 milestone unless it comes up in beta testing.

DevinWalker avatar Aug 10 '15 18:08 DevinWalker

Slack Call Summary

Participants: @nishitlangaliya, @ravinderk Topic: As discuss on call I need google API credentials for further development. As per google new policies https://developers.google.com/places/web-service/usage-and-billing?hl=en_US requires billing details needs to add. Result: I will send email to @DevinWalker regarding requesting api credentials for the same.

nishitlangaliya avatar Aug 06 '18 10:08 nishitlangaliya

@DevinWalker I need google map api for further development. Would you please check your email ?

Thanks

nishitlangaliya avatar Aug 06 '18 10:08 nishitlangaliya

@nishitlangaliya you've been provided the API key. Moving back to you Sprint Backlog.

DevinWalker avatar Aug 07 '18 20:08 DevinWalker

@DevinWalker ,

I have tried to reproduce error but not able to reproduce case. Below cases I test to reproduce.

  1. Add Google map in admin side with google places.
  2. Selected all places and create map.
  3. Test with 300, 3000 , 50000 radius with high speed and also with 2G speed.

So is it any specific location or lat long using which we can reproduce case.

Thanks

nishitlangaliya avatar Aug 10 '18 09:08 nishitlangaliya