def status_to_map()

in social-media/gather-data.py [0:0]


def status_to_map(prefix, status):
    result = {}
    result[prefix + 'sid'] = status.id
    result[prefix + 'created_at_in_seconds'] = status.created_at_in_seconds
    result[prefix + 'favorited'] = status.favorited
    result[prefix + 'favorite_count'] = status.favorite_count
    if status.geo is not None and status.geo['type'] == 'Point':
        result[prefix + 'lat'] = status.geo['coordinates'][0]
        result[prefix + 'lon'] = status.geo['coordinates'][1]
    result[prefix + 'in_reply_to_screen_name'] = status.in_reply_to_screen_name
    result[prefix + 'in_reply_to_user_id'] = status.in_reply_to_user_id
    result[prefix + 'in_reply_to_status_id'] = status.in_reply_to_status_id
    result[prefix + 'retweet_count'] = status.retweet_count
    result[prefix + 'text'] = status.text
    return result