-4
I have a problem, when I create a project in Google Maps and put the key, after reloading the page, alleges error You have exceeded your request quota for this API
. But I created my project and API in the same minute. What should I do?
<!DOCTYPE html>
<html>
<head>
<title>Simple Map</title>
<meta name="viewport" content="initial-scale=1.0">
<meta charset="utf-8">
<style>
/* Always set the map height explicitly to define the size of the div
* element that contains the map. */
#map {
height: 100%;
}
/* Optional: Makes the sample page fill the window. */
html, body {
height: 100%;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<h1>dsadsadasd</h1>
<div id="map"></div>
<script>
var map;
function initMap() {
map = new google.maps.Map(document.getElementById('map'), {
center: {lat: -23.5745792, lng: -46.6235351},
zoom: 8
});
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCzMklPLGCiJpHydazwhc5X1a1zN8iW_S4&callback=initMap"
async defer></script>
</body>
</html>
The error is quite explanatory: "You have exceeded your request quota for this API".
– João Pedro Schmitz
So brother... I commented at the beginning. It is not possible to reach any quota because I created now and I did not publish or use the MAP. I gave an F5 and this error appeared...
– Matheus Lopes
Create another key to see if it works.
– Sam