semiodesk / limes

Project repository for the Expert Finder System of the Life and Medical Sciences (LIMES) Institute, Bonn University.
0 stars 0 forks source link

Google Maps API key required for geocoding #4

Open faubulous opened 2 years ago

faubulous commented 2 years ago

We need a Google Maps API key for the organization Universität Bonn on the production machine for recurring geocoding database jobs.

faubulous commented 2 years ago

Google Maps key was added to Sciebo shared drive.

faubulous commented 2 years ago

Added the key to the production server. However, it did not report any error but did not retrieve any data as well. I guess we need to limit the key access using the server's IP address.

faubulous commented 2 years ago

This does not work yet:

https://www.profiles-ngs-cn.uni-bonn.de/display/39876/network/coauthors/map

faubulous commented 2 years ago

The embedded Google Maps is now working properly. However, the geocoding job still fails. Consulted Nick on this topic.

faubulous commented 2 years ago

When I issue a request to the Google Geocoding API with the key from the sever, I get the following error:

https://maps.googleapis.com/maps/api/geocode/xml?address=%22Carl-Troll-Str.%2031%2053115%20Bonn%22&key=XYZ

REQUEST_DENIED This IP, site or mobile application is not authorized to use this API key. Request received from IP address 2a00:5ba0:0:1014::83dc:ba2, with empty referer

We should try to temporarily disable the API restriction or to set the IPV6 IP address reported from Google: 2a00:5ba0:0:1014::83dc:ba2

faubulous commented 2 years ago

I could verify that by adding '2a00:5ba0:0:1014::83dc:ba2' to the list of allowed hosts in the Google Cloud console fixed this error. However, I do not have access to the production API settings.