Google Maps API - Exceeded request quota

Asked

Viewed 579 times

-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>
  • 1

    The error is quite explanatory: "You have exceeded your request quota for this API".

  • 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...

  • 1

    Create another key to see if it works.

1 answer

0

  • Ahhh yes, Regarding the Embed Map is feasible? It seems the right place of the coordinate?

  • Yes, it appears as on the website. You can try this link https://developers.google.com/maps/documentation/embed/start

Browser other questions tagged

You are not signed in. Login or sign up in order to post.