'Get the latest data from opendata.ch.'

def update(self):

    response = requests.get((((((((((_RESOURCE + 'connections?') + 'from=') + self.start) + '&') + 'to=') + self.destination) + '&') + 'fields[]=connections/from/departureTimestamp/&') + 'fields[]=connections/'), timeout=10)
    connections = response.json()['connections'][:2]
    try:
        self.times = [dt_util.as_local(dt_util.utc_from_timestamp(item['from']['departureTimestamp'])).strftime(TIME_STR_FORMAT) for item in connections]
        self.times.append((dt_util.as_local(dt_util.utc_from_timestamp(connections[0]['from']['departureTimestamp'])) - dt_util.as_local(dt_util.utcnow())))
    except KeyError:
        self.times = ['n/a']
