Split geocode function so that geocode only returns the parsed response, and the lat/lng coordinates are extracted by getLatLngFromGeocode. Similar functions can be built to extract other pieces of data from the response.