How to geocode using a Google API

Reply
Occasional Contributor
Posts: 19

How to geocode using a Google API

[ Edited ]

I'm trying to geocode 1,000+ addresses in SAS using Google. I have a Google API already, but can't get any code to successfully geocode my addresses. I've seen the example at the link below but can't get it to run without getting a "Lost Card" error. 

 

http://analytics.ncsu.edu/sesug/2009/RV007.Trahan.pdf 

 

Looking for ANY code that can be used to geocode addresses at the street address level (preferably using Google). Thanks!

Grand Advisor
Posts: 17,396

Re: How to geocode using a Google API

That looks a bit old. I'm pretty sure the API has

changed significantly since then. Look for a paper by Mike Zdeb on using Google. 

 

http://www.sascommunity.org/wiki/Geocoding_using_SAS_and_Google_Maps

SAS Employee
Posts: 170

Re: How to geocode using a Google API

Be careful of the Google legal rules.  Unless you have the paid Google plan, using the geocoder standalone may be illegal. 

They require that you use Google Maps with most 'content'.  Content can be the result of the geocoder.

https://developers.google.com/maps/terms#1-your-relationship-with-google

 

10.4.d. No use of Content without a Google map. Unless the Maps APIs Documentation expressly permits you to do so, you will not use the Content in a Maps API Implementation without a corresponding Google map.

Ask a Question
Discussion stats
  • 2 replies
  • 254 views
  • 0 likes
  • 3 in conversation