Code Monkey home page Code Monkey logo

Comments (3)

erperejildo avatar erperejildo commented on July 20, 2024 11

If we need to activate the billing on our account that's some kind of important info we should have on the README

from flutter_google_places.

julianmarangoni avatar julianmarangoni commented on July 20, 2024

Was having same issue, was working at first, then results just stopped showing. Turns out my access to the API was being denied.

flutter_google_places.dart:

Future<Null> doSearch(String value) async {
if (mounted && value.isNotEmpty) {
  setState(() {
    _searching = true;
  });

  final res = await _places.autocomplete(
    value,
    offset: widget.offset,
    location: widget.location,
    radius: widget.radius,
    language: widget.language,
    sessionToken: widget.sessionToken,
    types: widget.types,
    components: widget.components,
    strictbounds: widget.strictbounds,
  );

  if (res.errorMessage?.isNotEmpty == true || <---------- ACCESS DENIED MESSAGE HERE
      res.status == "REQUEST_DENIED") {
    onResponseError(res);
  } else {
    onResponse(res);
  }
} else {
  onResponse(null);
}
 }

I didn't have the API enabled. (don't know why it was working before). Was getting the following error message:

This API project is not authorized to use this API. Please ensure this API is activated in the Google Developers Console: https://console.developers.google.com/apis/api/places_backend?project=_

After enabling the API, I started getting:

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

And according to https://stackoverflow.com/a/52545293, you need to enable billing on your account, even if you are only using the free quota.

from flutter_google_places.

KevMorelli avatar KevMorelli commented on July 20, 2024

Solved by @julianmarangoni

from flutter_google_places.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.