Hi all, 

I am trying to use Google Maps Mobile; I had already gotten the APIKey from Google and enabled both Maps Embed API and Maps Javascript API. I have also read the following post:

https://www.outsystems.com/forums/discussion/47670/implementing-google-map-plugin-for-mobile/

In my project, I included the GoogleMapsMobile reference and on my screen I just pulled in the Map, hardcoded Lat and Long as the Center Lat & Long. But when I pulled up the screen, it still have this weird error, could someone tell me why and/or how to troubleshoot this?

I put in a real Google API, why would it still say For development purposes only?


Thanks!

Herman

Solution

Hi Herman,

First of all will suggest, please check google map in real device instead of simulator. Also you are getting message "for development purpose only" because Google Maps is no longer free. You have to associate a credit card so that you can get billed if your site has requests that exceed the $200 credit they give you monthly for free. That is why you get the watermarked maps. For more information, see: https://cloud.google.com/maps-platform/pricing/

If you already activated account then please check below :

A common problem with the new billing system is that you now have to activate each API separately. They all have different pricing (some are even free), so Google makes a point of having you enable them individually for your domain. I was never a heavy user of Google Maps, but I get the feeling that there are many more APIs now than there used to be.

So if you're still getting a restricted usage message after you've enabled billing, find out what API you need exactly for the features you want to offer, and check if it's enabled. The API settings are annoyingly hard to find.

  1. Go to this link: https://console.developers.google.com/apis/dashboard.
  2. Then you select your project in the dropdown.
  3. Go to library on the left pane.
  4. Browse the available APIs and enable the one you need.

Thank you.


Solution

Herman Z wrote:

Hi all, 

I am trying to use Google Maps Mobile; I had already gotten the APIKey from Google and enabled both Maps Embed API and Maps Javascript API. I have also read the following post:

https://www.outsystems.com/forums/discussion/47670/implementing-google-map-plugin-for-mobile/

In my project, I included the GoogleMapsMobile reference and on my screen I just pulled in the Map, hardcoded Lat and Long as the Center Lat & Long. But when I pulled up the screen, it still have this weird error, could someone tell me why and/or how to troubleshoot this?

I put in a real Google API, why would it still say For development purposes only?


Thanks!

Herman

Hi Herman,

For using Google Map JavaScript API you needs to enable billing on your project (in google developer console). Using JavaScript API without billing account is the reason of this error.

You can check the details here:

https://developers.google.com/maps/documentation/javascript/usage-and-billing?hl=en_US

I also encountered this problem earlier, It got resolved automatically by enabling the billing in Google console. 


Thanks.

Thanks everyone! I enabled billing in Google, and the error is gone now. I am working on putting multiple markers, driving directions the next.