def METHOD_NAME(l):
	for o in l.get('offices', []):
		if o.get('latitude'):
			continue
		if not o.get('address') or not o.get('city') or not o.get('state'):
			continue
		address_query = ', '.join([o['address'], o['city'], utils.states[o['state']]])
		result = None
		try:
			result = geocode(address_query)
			_sanity_check_location(o, l['id']['bioguide'], result)
		except GeocodeException as e:
			print('Geocoding failed for %s office %s (%s): %s. Query: "%s". Result: "%s"' % (
				l['id']['bioguide'], o['city'], o['address'], e, address_query,
				result['formatted_address'] if result else None))
			continue
		location = result['geometry']['location']
		o['latitude'] = location['lat']
		o['longitude'] = location['lng']
		print('Success: %s office %s, query "%s" geocoded to "%s" (%s,%s)' % (
			l['id']['bioguide'], o['city'], address_query, result['formatted_address'],
			location['lat'], location['lng']))