To use the Google Maps API, do you need to enable billing?

Asked

Viewed 137 times

0

I’m trying to put a map on the site, but Google says in the browser console that you need to enable billing.

That’s right?

window.initMap = function(){
    if(document.getElementById('mapa')){
        map = new google.maps.Map(document.getElementById('mapa'), {
            zoom: 15,
            center: new google.maps.LatLng(-22.7499199, -43.3937669),
            mapTypeId: 'roadmap'
        });

        var iconBase = 'https://developers.google.com/maps/documentation/javascript/examples/full/images/beachflag.png';

        marker = new google.maps.Marker({
            position: new google.maps.LatLng(-23.559308, -46.691324),
            icon: iconBase,
            map: map,
            animation: google.maps.Animation.DROP,
            title: 'Lugar'
        });

        marker.addListener('click', toggleBounce);
    }
}

<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyC0o2BROdoqZLlSNKuBxdC-ddd&callback=initMap" async defer></script>

I am doing so and returns me the following problem:

You have exceeded your request quota for this API. See https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&utm_campaign=billing#api-key-and-Billing-errors

  • 1

    Yes, if I’m mistaken, that came true in July of last year!

  • But like, do you have credits every month to use? Do you know anything about this?

  • 1

    Price list: https://developers.google.com/maps/previous-pricing

  • I’ll have to use the embed.

No answers

Browser other questions tagged

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