我已经在我的网站上实现了google places api来显示地址列表,并且它会抛出下面提到的错误。
Google Maps API错误:RefererNotAllowedMapError https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error。您要授权的网站网址:mysiteurl.com
由于此错误,我实施的Google地方文字框已停用且无法继续。
<input id="address" required="" type="text" gm-places-autocomplete="gm-places-autocomplete" ng-model="autocomplete" placeholder="Oops! Something went wrong." value="" ng-focus="expandAddress=true" ng-init="expandAddress=false" class="address-trigger form-control ng-untouched ng-valid ng-dirty ng-valid-parse ng-valid-required gm-err-autocomplete" autocomplete="off" disabled="" style="background-image: url("https://maps.gstatic.com/mapfiles/api-3/images/icon_error.png");">
基本上,我想要一个后备,如果谷歌地方无法正确加载。用户仍然应该能够写地址并继续。
请帮我解决这个问题。