나는 당신의 문제에 대한 해결책을 발견했다. 자동 완료 입력에서 전화를 걸었을 때 Google에서 자동 완성 장소로 전화가 걸려 왔습니다. 그러나이 응답은 [3,null,null,"This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console: https://console.developers.google.com/apis/library?project=_ Please ensure this API is activated in the Google Developers Console: https://console.developers.google.com/apis/api/places_backend?project=_ For more information on authentication and Google Maps Javascript API services please see: https://developers.google.com/maps/documentation/javascript/get-api-key"])
이라는 오류를 반환합니다. 친절하게도이 API를 활성화하지 않았거나 사용중인 API 키가 올바르지 않습니다. 먼저 API가 켜지지 않았는지 확인하십시오. Google Maps JavaScript API 용 API를 생성해야합니다. 나는 또한 내가받은 오류의 스냅 샷을 추가하고있다.
Google Api에서 동일한 코드를 사용해 보았습니다. 문제없이 작동합니다. 당신은 혼자서 javascript와 html을 변경 했습니까? –
내 솔루션으로 문제가 해결 되었습니까? –
나는 내 열쇠를 넣는 것 외에는 아무런 변화도하지 않았다. 또한 콘솔을 확인했습니다. API를 사용하도록 설정하면 – user3300034