'Return the state attributes.'

@property
def device_state_attributes(self):

    if (self._matrix is None):
        return None
    res = self._matrix.copy()
    res.update(self._options)
    del res['rows']
    _data = self._matrix['rows'][0]['elements'][0]
    if ('duration_in_traffic' in _data):
        res['duration_in_traffic'] = _data['duration_in_traffic']['text']
    if ('duration' in _data):
        res['duration'] = _data['duration']['text']
    if ('distance' in _data):
        res['distance'] = _data['distance']['text']
    return res
