Guess a location lat/lon from the provided string

    Returns:
      str: +##.####,+###.####,### latitude, longitude, distance
           A location and radius in twitter geocode format

    >>> geocode('')
    '45.52,-122.6819,20mi'

def geocode(location, *args, **kwargs):
    """Guess a location lat/lon from the provided string

    Returns:
      str: +##.####,+###.####,### latitude, longitude, distance
           A location and radius in twitter geocode format

    >>> geocode('')
    '45.52,-122.6819,20mi'
    """
    location = LOCATIONS.get(location, location)
    if len(args):
        location = [location] + args
    try:
        llr = location.split(',')
    except:
        llr = [str(s).strip.lower() for s in location]
    llr = [s for s in llr if s]
    for i in range(len(LOCATIONS['Portland'])):
        if len(llr) < i + 1:
            llr += [LOCATIONS['Portland'][i]]
    if str(llr[-1])[-2:] not in DISTANCE_UNITS:
        llr[-1] = str(llr[-1]) + DISTANCE_UNITS[0]
    return ','.join([str(value) for value in llr])