Using Google Maps: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
mNo edit summary
Brian Wilson (talk | contribs)
mNo edit summary
Line 1: Line 1:
As of June 2018 Google Maps requires that you use an API key. For me this means I had to embed it in my LocalSettings.php file so that [[Wiki Maps]] would work.
As of June 2018 Google Maps requires that you use an API key. For me this means I had to embed it in my LocalSettings.php file so that [[Wiki Maps]] would work.


You don't have to pay anything or put a credit card on file, but when you hit your limit ($200 / month) then they stop delivering maps.
From StackOverflow: "According to the Google Maps Platform technical support, a billing account without any credit card information will be created for each project without billing account. This means that the API calls will still succeed, as long as they fit within the free tier of $200 per month. If your application goes over the 200$ free tier, the billing account will be closed, and API calls will start failing. The only option after that to reopen billing account is entering the credit card information."
This is fine with everything I need right now.
 
I am pretty sure if you try to do this you will find that it does not work. You now have to put in a credit card (or bank account). Period.
 
Once it's set up you can set the project created to have a credit limit of $0 so that it will not bill you but the card still has to be in there.
 
There is still [[OpenStreetMap]].


== What you need to do ==
== What you need to do ==


# Get an account. Now you are a developer, whoo whoo.
# Get an account.  
# Get an API key.
# Get an API key.
# Use the key.
# Use the key.
In my [https://console.cloud.google.com/ Google Cloud Platform] dashboard,
I can see the one I use on this site (which is hosted at bluehost.com BTW),
I called it "WildsongWiki".


== Google links ==
== Google links ==

Revision as of 22:55, 3 October 2018

As of June 2018 Google Maps requires that you use an API key. For me this means I had to embed it in my LocalSettings.php file so that Wiki Maps would work.

From StackOverflow: "According to the Google Maps Platform technical support, a billing account without any credit card information will be created for each project without billing account. This means that the API calls will still succeed, as long as they fit within the free tier of $200 per month. If your application goes over the 200$ free tier, the billing account will be closed, and API calls will start failing. The only option after that to reopen billing account is entering the credit card information."

I am pretty sure if you try to do this you will find that it does not work. You now have to put in a credit card (or bank account). Period.

Once it's set up you can set the project created to have a credit limit of $0 so that it will not bill you but the card still has to be in there.

There is still OpenStreetMap.

What you need to do

  1. Get an account.
  2. Get an API key.
  3. Use the key.

In my Google Cloud Platform dashboard, I can see the one I use on this site (which is hosted at bluehost.com BTW), I called it "WildsongWiki".

Google links

[https://developers.google.com/maps/documentation/javascript/get-api-key

Cateogory: GIS