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=<@tokenize str=<@arg address> CHARS=" " CDELIM="">> <@var address type=text APREFIX="" ASUFFIX="" RPREFIX="" RSUFFIX="" CPREFIX="" CSUFFIX="+" ><br> <@URL LOCATION="https://maps.googleapis.com/maps/api/geocode/xml?address=<@var address type=text APREFIX="" ASUFFIX="" RPREFIX="" RSUFFIX="" CPREFIX="" CSUFFIX="+" >,+<@arg City>,+<@arg State>&key=" WAITFORRESULT="TRUE" DETAILEDRESPONSE="True" Encoding=""> Dan Stein MSN 215-799-0192 [email protected] Waking up this morning, I smile, Twenty-four brand new hours are before me. I vow to live fully in each moment And to look at all beings with the eyes of compassion. Vietnamese Zen monk, Thich Nhat Hanh On Aug 1, 2014, at 12:26 PM, Ian Evans <[email protected]> wrote: > Try this maybe? > > <@URL LOCATION="<@URLENCODE > STR='https://maps.googleapis.com/maps/api/geocode/xml?address=<@ARG > address>,+<@arg City>,+<@arg > State>&key=ABQIAAAAtGm0fTVDavNHbOpVwkkoOBSpr3ezrrGOLzGS10G1HynQEM94bRSZBFJ7j4aQe64gEUjCzmvB2GQUUA'>" > WAITFORRESULT="TRUE" DETAILEDRESPONSE="TRUE"> > > On 08/01/2014 09:08 AM, Dan Stein wrote: >> 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" >> DETAILEDRESPONSE="True" Encoding="URL”>> >> >> > > > > ---------------------------------------- > > To unsubscribe from this list, please send an email to > [email protected] with "unsubscribe terascript-talk" in the body. ---------------------------------------- To unsubscribe from this list, please send an email to [email protected] with "unsubscribe terascript-talk" in the body.
