[R-sig-Geo] Help with geocode() & get_map() please

Poling, William Po||ngW @end|ng |rom @etn@@com
Thu May 28 19:29:23 CEST 2020


Hello again.

With Google help chat I discovered that I (we all) have a cloud billing Key and an API key.

I had everything correct in the cloud dashboard in terms of enabled API's, however, I was repeatedly trying to register the billing key and getting the errors after running the scripts, UGH!

register_google(key = "000000-000000-000AA0", write = TRUE) Billing Key NO GOOD
register_google(key = "Blahblah0BBLLAAHHblahlllaaabb00blah", write = TRUE) API Key from credentials GOOD

I hope this helps someone else down stream

Thank you Kent!

WHP

From: Kent Johnson <kent3737 using gmail.com> 
Sent: Thursday, May 28, 2020 7:52 AM
To: r-sig-geo using r-project.org; Poling, William <PolingW using aetna.com>
Subject: [EXTERNAL] Re: Help with geocode() & get_map() please

**** External Email - Use Caution ****
On Thu, May 28, 2020 at 6:03 AM <mailto:r-sig-geo-request using r-project.org> wrote:
Message: 1
Date: Wed, 27 May 2020 19:55:26 +0000
From: "Poling, William" <mailto:PolingW using aetna.com>
Subject: [R-sig-Geo] Help with geocode()  & get_map() please
 
2. I am having trouble with get_map()

ny.map <- get_map("New York", zoom = 8)

Source : https://urldefense.proofpoint.com/v2/url?u=https-3A__maps.googleapis.com_maps_api_staticmap-3Fcenter-3DNew-2520York-26zoom-3D8-26size-3D640x640-26scale-3D2-26maptype-3Dterrain-26language-3Den-2DEN-26key-3D-5B012819-2D836529-2D634EA5-5D&d=DwMFaQ&c=wluqKIiwffOpZ6k5sqMWMBOn0vyYnlulRJmmvOXCFpM&r=j7MrcIQm2xjHa8v-2mTpmTCtKvneM2ExlYvnUWbsByY&m=CsMl9LHpa9ULoNXKdkrUT6ekC9fM5srAwGtqAbNgep0&s=l5KYIQUC-rz6VESNkigtwbi7rx-YYayVqIrdsrN0prE&e=
Error in aperm.default(map, c(2, 1, 3)) : 
invalid first argument, must be an array
In addition: Warning message:
In get_googlemap(center = location, zoom = zoom, maptype = maptype,  :
  HTTP 400 Bad Request 

This looks like the problem described here:
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_dkahle_ggmap_issues_262&d=DwMFaQ&c=wluqKIiwffOpZ6k5sqMWMBOn0vyYnlulRJmmvOXCFpM&r=j7MrcIQm2xjHa8v-2mTpmTCtKvneM2ExlYvnUWbsByY&m=CsMl9LHpa9ULoNXKdkrUT6ekC9fM5srAwGtqAbNgep0&s=TegKIx-xo3fzI61Ul_ejBvccaNAV2c0cHSrQV5-5rNg&e=

It is a problem with your Google credentials. 

Kent 

Proprietary

NOTICE TO RECIPIENT OF INFORMATION:
This e-mail may contain confidential or privileged information. If you think you have received this e-mail in error, please advise the sender by reply e-mail and then delete this e-mail immediately.  
This e-mail may also contain protected health information (PHI) with information about sensitive medical conditions, including, but not limited to, treatment for substance use disorders, behavioral health, HIV/AIDS, or pregnancy. This type of information may be protected by various federal and/or state laws which prohibit any further disclosure without the express written consent of the person to whom it pertains or as otherwise permitted by law. Any unauthorized further disclosure may be considered a violation of federal and/or state law. A general authorization for the release of medical or other information may NOT be sufficient consent for release of this type of information.
Thank you. Aetna


More information about the R-sig-Geo mailing list