google-maps-services-js
google-maps-services-js copied to clipboard
PlacesNearby: error 400 when accessing endpoint without a radius.
Thanks for stopping by to let us know something could be better!
PLEASE READ
If you have a support contract with Google, please create an issue in the support console. This will ensure a timely response.
Discover additional support services for the Google Maps Platform, including developer communities, technical guidance, and expert support at the Google Maps Platform support resources page.
If your bug or feature request is not related to this particular library, please visit the Google Maps Platform issue trackers.
Check for answers on StackOverflow with the google-maps tag.
Please be sure to include as much information as possible:
Environment details
Library version - 3.3.2 Accessed on MacOS 12.3.1 via web browser
Steps to reproduce
- Make request at "placesNearby" search without defining radius parameter with the request. Expecting radius to be optional.
- Expecting radius to default to 50000, because it is listed as optional. Should move radius to required fields.
Code example - URL Request
https://maps.googleapis.com/maps/api/place/nearbysearch/json?key=AIzaSyANgf8k_0vbx9EWsB1EnwARN3S3wB4_-8o&location=27.31245%2C-82.45066&keyword=starbucks
Stack trace - Response
{
"html_attributions": [],
"results": [],
"status": "INVALID_REQUEST"
}
Following these steps will guarantee the quickest resolution possible.
Thanks!