places nearby name google example address google-maps-api-3 google-places-api

google maps api 3 - nearby - API de Google Place: devuelve siempre este "estado": "REQUEST_DENIED"



google places search api example (2)

El "estado": "REQUEST_DENIED" es devuelto por la API de Places cuando:

You have not activated the Places API Service in the services tab of the APIs console. The sensor parameter is missing from your request, or is set to something other than true or false. The key parameter is missing from your request. The key parameter does not match the your API key in the API Access tab of the APIs console. Your API key has not been correctly set up in the API Access tab of the APIs Console: If you are using a Browser key, check that your allowed Referer(s) are correct. If you are using a Server key, check that your allowed IP(s) are correct. Android and iOS keys are not supported, please use a Browser or Server key. The request was not sent as an HTTPS request, HTTPS is required for all Web Service requests. The incorrect HTTP method was used to send the request: All requests must be sent as a GET request except for Place Actions. All Place Actions must be sent as a POST request.

Actualmente estoy trabajando con Google Place API, tengo un problema cuando accedo a este enlace

https://maps.googleapis.com/maps/api/place/search/json?location=latitude,longitude&radius=1&sensor=false&key=apikey

con ingresar la información como la latitud, la longitud y la clave API y configurar el sensor igual a falso , pero siempre muestra:

{ "debug_info" : [], "html_attributions" : [], "results" : [], "status" : "REQUEST_DENIED" }

Ya busqué ese tipo de error y vi que parte de la publicación sugiere verificar el valor del sensor y verificar la clave API . Ya lo he comprobado y también he comprobado que el servicio está habilitado para Google Maps API v3 . Pero nada funciona para mi Soy nuevo en esto, no entiendo lo que estoy haciendo mal, por favor ayuda.


Está utilizando http (s) para llamar a la API de Google, su html también está alojado en http (s). Si no, intente cambiar la url de google a http.

De lo contrario, todo lo demás se ve bien, así que me hace pensar que es posible que desee comprobar su consola de API de nuevo, vaya a SERVICIOS y comprobar si su ''API de Lugares'' está activada.

También puede intentar cambiar la dirección del puerto a 443 para obtener respuesta de la API de Places