Generalized geocodeAddress function to take either a string(address) or
an object (GeocodeRequest).