Re: TeraScript-Talk: Google API

2014-08-01 Thread Ian Evans
Try this maybe? <@URL LOCATION="<@URLENCODE STR='https://maps.googleapis.com/maps/api/geocode/xml?address=<@ARG address>,+<@arg City>,+<@arg State>&key=ABQItGm0fTVDavNHbOpVwkkoOBSpr3ezrrGOLzGS10G1HynQEM94bRSZBFJ7j4aQe64gEUjCzmvB2GQUUA'>" WAITFORRESULT="TRUE" DETAILEDRESPONSE="TRUE"> On 08/01/

Re: TeraScript-Talk: Google API

2014-08-01 Thread Dan Stein
Actually I don’t need the encoding at all. It comes backs as XML fine My error was in not tokenizing the address line. And also will need to do the city in case it two works. But this code works fine then all I need to do is parse out the xML. No keys are needed anymore. <@assign address value=<@

Re: TeraScript-Talk: Google API

2014-08-01 Thread Dan Stein
If I do encoding None it gets a 404 error from google. Apparently the key is to use <@URLDECODE> but that is also giving me an 404 error <@URLDECODE str=<@URL LOCATION="https://maps.googleapis.com/maps/api/geocode/xml?address=<@ARG address>,+<@arg City>,+<@arg State>&key=" WAITFORRESULT="TRUE"

Re: TeraScript-Talk: Google API

2014-08-01 Thread Ian Evans
I think the encoding property is what's changing the output. Have you tried without it? On August 1, 2014 7:22:53 AM PDT, Dan Stein wrote: >I am doing a geocode with the google API. >I send this ><@URL >LOCATION="https://maps.googleapis.com/maps/api/geocode/xml?address=<@ARG >address>,+<@arg Cit

TeraScript-Talk: Google API

2014-08-01 Thread Dan Stein
I am doing a geocode with the google API. I send this <@URL LOCATION="https://maps.googleapis.com/maps/api/geocode/xml?address=<@ARG address>,+<@arg City>,+<@arg State>&key=ABQItGm0fTVDavNHbOpVwkkoOBSpr3ezrrGOLzGS10G1HynQEM94bRSZBFJ7j4aQe64gEUjCzmvB2GQUUA" WAITFORRESULT="TRUE" DETAILEDRESPON