* Map Life Facts - API Key Problem

For users to report plugin bugs and request plugin enhancements; and for authors to test new/new versions of plugins, and to discuss plugin development (in the Programming Technicalities sub-forum). If you want advice on choosing or using a plugin, please ask in General Usage or an appropriate sub-forum.
Post Reply
avatar
garethhowell
Gold
Posts: 29
Joined: 02 May 2019 14:26
Family Historian: V7
Location: St Neots, UK
Contact:

Map Life Facts - API Key Problem

Post by garethhowell » 23 Oct 2021 17:04

I recently change machines. I previously had Map Life Facts working on the old machine but I'm having problems getting it working again on the new one (no, I didn't export all the settings before migrating across).

I've added the API code back in, but the plugin gets a "geocoder api request denied" when I click to geocode a location. Looking at the API key itself, I have no restrictions on the APIs tht can be used, but when I try to restrict it, I can't find the geocoding API in the list of APIs. I can see the Maps Javascript API.

Has something changed at Google?
Gareth Howell
Researching HOWELL (Kent and South Wales), STILTZ/STILTS (London and Germany), DUNN (Norfolk)

User avatar
tatewise
Megastar
Posts: 27075
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Map Life Facts - API Key Problem

Post by tatewise » 23 Oct 2021 20:30

Gareth, I've started a new thread for this as it is unrelated to the original thread you used.

Do NOT change any of the online Google API settings.
They worked before migrating so they will continue to work with the correct API Key.

Sorry but the most likely reason for not working is that you have entered the API Key incorrectly.
I strongly suggest you migrate the settings and everything will be just fine.
See the FHUG Knowledge Base Family Historian Copy and Migration Guide and focus on the Copying Program Settings advice.

Alternatively, Copy & Paste the API Key from the Google online page.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
garethhowell
Gold
Posts: 29
Joined: 02 May 2019 14:26
Family Historian: V7
Location: St Neots, UK
Contact:

Re: Map Life Facts - API Key Problem

Post by garethhowell » 24 Oct 2021 10:08

It turns out that the problem was at Google's end.

In the OP, I mentioned that I couldn't see the Geocoding API in the list of APIs. I went into the Cloud Platform and opened up the mapping App I created last year and could see that the Geocoding API was not in the list of enabled mapping APIs and that there was an "Enable APIs" button at the top. Clicking this opened another screen with the full list of APIs. I searched for geocoding and found the Geocoding API, but it was disabled.

Once I enabled it, everything worked.

Thanks for your help, Mike.
Gareth Howell
Researching HOWELL (Kent and South Wales), STILTZ/STILTS (London and Germany), DUNN (Norfolk)

User avatar
tatewise
Megastar
Posts: 27075
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Map Life Facts - API Key Problem

Post by tatewise » 24 Oct 2021 11:28

Gareth, I'm glad you worked that through, but wonder how that Geocoding API got disabled. Very odd!

What confused me was your statement that there were no API restrictions, which implied they were all enabled.

There should be two enabled if API Restrictions are enforced: Maps Java Script API and Geocoding API.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
garethhowell
Gold
Posts: 29
Joined: 02 May 2019 14:26
Family Historian: V7
Location: St Neots, UK
Contact:

Re: Map Life Facts - API Key Problem

Post by garethhowell » 24 Oct 2021 12:48

That is the odd thing, you're right.

Inspecting the API Key itself showed that there were no restrictions. However, if you set the option to restrict and then went to select the APIs, Geocoder API was not in the list. It was disabled at a higher (lower?) level.

Sorted now, but it may catch somebody else sometime.

Gareth
Gareth Howell
Researching HOWELL (Kent and South Wales), STILTZ/STILTS (London and Germany), DUNN (Norfolk)

Post Reply