olefirenko / vue-google-autocomplete

A Vue.js autosuggest component for the Google Places API.
https://olefirenko.github.io/vue-google-autocomplete/
MIT License
507 stars 258 forks source link

You have exceeded your daily request quota for this API. #110

Open gustawdaniel opened 5 years ago

gustawdaniel commented 5 years ago

I have error:

You have exceeded your daily request quota for this API. If you did not set a custom daily request quota, verify your project has an active billing account: http://g.co/dev/maps-no-account For more information on usage limits and the Google Maps JavaScript API services please see: https://developers.google.com/maps/documentation/javascript/usage

gustawdaniel commented 5 years ago

It potentially can be connected with #53 because of I have some (three) components on one page.

gustawdaniel commented 5 years ago

On production I have error:

This page can't load Google Maps correctly. Do you own this website?

screenshot from 2019-01-13 20-44-06

marufmax commented 5 years ago

I am also getting the same error. I just integrated this package never used any google cloud services before.

gustawdaniel commented 5 years ago

Hi @marufmax. I solved it. There is a description:

1) You should have API_KEY, but not any API_KEY. It has to be API_KEY with proper scope - scope to places google api.

To get it you should go to page

http://g.co/dev/maps-no-account

Select one of the options:

In our case places, but you can select more if you want to have more universal API_KEY.

Next, connect it with your account. But look at pricing.

https://developers.google.com/places/web-service/usage-and-billing

Before changes prices were the following:

Standard Usage Limits for Places API

Standard Plan quota is calculated as the sum of client-side and server-side requests.

Now pricing is changed. The most interesting part here:

screenshot from 2019-01-24 21-44-41

I worried about the article

https://www.reddit.com/r/webdev/comments/8vrkm6/google_places_api_new_pricing_from_0_to_2180_per/

It means that when you start using this package and update an address on any key pressed you should consider about 5 - 20 requests for one usage of this component by the user. In worst case 1000 usages mean

20 * 32 USD.

Finally, I resigned from this component and stop using it after changes in pricing, but what you will do it is your decision. In my case, I come back to geocoding api that is cheapest and works like a charm.

https://developers.google.com/maps/documentation/geocoding/intro

Question

Can be 134 line of

https://github.com/olefirenko/vue-google-autocomplete/blob/master/src/VueGoogleAutocomplete.vue

changed to use Geocoding?

I anyway will no use this component and tyme my own, but for further users, pricing issue can make a big difference.

marufmax commented 5 years ago

@gustawdaniel Thanks for your nice explanation. Yeah, I've also seen that Google has changed their map API usages price. Do you have anything alternative in your mind? Like, Foursquare or Here.com or other maps?

gustawdaniel commented 5 years ago

I mentioned geocoding api. Try a command like this

http "https://maps.google.com/maps/api/geocode/json?key=API_KEY&sensor=false&address=Partęczyny 11"

with httpie and your API_KEY with enabled geocoding api. It is free. But it is my first contact with

https://developer.foursquare.com/

and

https://www.here.com/

These services look promising. I don't have any experience and opinion about them.

hoanghuychh commented 3 years ago

If your problem is Screen Shot 2021-06-10 at 17 49 27 and can't increase Now let create a new project and Make sure that billing is enabled for your Cloud project before the result for u Screen Shot 2021-06-10 at 18 39 41

roy-rayyone commented 2 years ago

If your problem is Screen Shot 2021-06-10 at 17 49 27 and can't increase Now let create a new project and Make sure that billing is enabled for your Cloud project before the result for u Screen Shot 2021-06-10 at 18 39 41

That's help! Thanks a lot

truonggiangdao commented 1 year ago

Thanks @hoanghuychh That's work. I couldn’t figure out why but after I create a new Project with the previous billing account enabled then no longer have "Limit 1 Map loads per day" anymore.

paulsteigel commented 1 year ago

I have the same problem. I create new project under nonprofit account and have geocoding quota of unlimited request per day. After one day, the quota changed to limit 1 request perday. Please guide me on the problem with thanks!

trungsky commented 1 year ago

I have the same problem. I create new project under nonprofit account and have geocoding quota of unlimited request per day. After one day, the quota changed to limit 1 request perday. Please guide me on the problem with thanks!

me too, did you solve it?

NguyenDinhTruong97 commented 1 year ago

me too, did you solve it?

Google hiện đã chặn VN, số quotas bị giới hạn đến mức không dùng đc luôn rồi. Hiện tại muốn dùng đc thì phải đổi tài khoản thanh toán thành tài khoản nước ngoài thì mới dùng đc https://tinhte.vn/thread/google-map-api-bi-chan-o-viet-nam-va-giai-phap-cho-cac-ung-dung.2937196/

trungsky commented 1 year ago

me too, did you solve it?

Google hiện đã chặn VN, số quotas bị giới hạn đến mức không dùng đc luôn rồi.

Hiện tại muốn dùng đc thì phải đổi tài khoản thanh toán thành tài khoản nước ngoài thì mới dùng đc

https://tinhte.vn/thread/google-map-api-bi-chan-o-viet-nam-va-giai-phap-cho-cac-ung-dung.2937196/

Em cũng có thử nhưng được vài hôm Google cũng limit lại về 1 request bác ạ, cứ vài ngày phải tạo 1 tk khá mất công

NguyenDinhTruong97 commented 1 year ago

Em cũng có thử nhưng được vài hôm Google cũng limit lại về 1 request bác ạ, cứ vài ngày phải tạo 1 tk khá mất công

Bây giờ nếu không có tk nước ngoài thì bỏ google map thôi. Có vài giải pháp thay thế để tham khảo như Goongmap hay EKMap hơi mệt chút nhưng dùng cũng đc