Пример #1
0
def to_object(item):
    return {
        "title": common.getText(item, 'title'),
        "description": common.getText(item, 'description'),
        "pubDate": toISOTime(common.getText(item, 'pubDate')),
        "link": common.getText(item, 'link')
    }
Пример #2
0
def to_object(item):
    return {
        "destination": common.getText(item, 'DirectionName'),
        "scheduled": common.getText(item, 'AimedDepartureTime'),
        "estimated": common.getText(item, 'ExpectedDepartureTime'),
        "service": common.getText(item, 'PublishedLineName'),
        "stop": common.getText(item, 'MonitoringRef'),
    }