def geobox_to_geocode(geobox, radius):
    """Given a geobox and a radius, return a valid Twitter geocode consisting of a point and radius."""
    midpoint = geobox[0].midpoint(geobox[1])
    return '{lat},{lon},{radius}'.format(lat=midpoint.x, lon=midpoint.y,
        radius=radius)
