Desktop productivity for business analysts and programmers

How do I log on google account in SAS program

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 18
Accepted Solution

How do I log on google account in SAS program

Hello,

I am using Google Maps in SAS enterprise guide to calculate driving time two points.

However, google allow me to use maps api only limited number, so I purchased google maps license.

The problem is I have no idea how to log on google account.

Would anyone please explain how to do it?

Thanks

--

Suppose, my username : Alonzo and pw : Texas.

I open google maps using filename statement.

=> filename x url "http://maps.googleapis.com/maps/api/directions/xml?origin=&p1&destination=&p2"

Should above line be

=> filename x url "http://maps.googleapis.com/maps/api/directions/xml?origin=&p1&destination=&p2" user='Alonzo' pass='Texas' prompt;


Accepted Solutions
Solution
‎07-17-2015 03:43 AM
Contributor
Posts: 27

Re: How do I log on google account in SAS program


All Replies
Solution
‎07-17-2015 03:43 AM
Contributor
Posts: 27

Re: How do I log on google account in SAS program

Hello Alonzo,

https://developers.google.com/maps/documentation/directions/intro#RequestParameters

According to this you should use your API_KEY (and not username/password) like this

filename x url "http://maps.googleapis.com/maps/api/directions/xml?origin=&p1&destination=&p2&key=API_KEY"

Regards,

Super User
Posts: 3,240

Re: How do I log on google account in SAS program

This may be useful too:

SAS Employee
Posts: 170

Re: How do I log on google account in SAS program

If you licensed Google Maps, I think you are using Google Maps for Work. 

It says this about using the key:

Google Maps for Work customers must include client and signature parameters with their requests instead of a key.

and

Google Maps API web services will deny requests made with both a client ID and a key.



https://developers.google.com/maps/documentation/business/webservices/#client_id


🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 361 views
  • 3 likes
  • 4 in conversation