You can define that function in a BEGIN PROGRAM PYTHON - END PROGRAM, and
then use SPSSINC TRANS. Or do the geocoding all in python.
Note to do geocoding via the google API you need to pay money, although the
free amount you get per month is probably enough for any NGO doing surveys.
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD