def elevations(self):
        """Retrieves elevations/offsets from the output response

        Returns:
            elevations/offsets (namedtuple): A named tuple of list of
            elevations/offsets
        """
        resources = self.get_resource()
        elevations = namedtuple('elevations_data', 'elevations')
        try:
            return [elevations(resource['elevations'])
                    for resource in resources]
        except KeyError:
            return [elevations(resource['offsets'])
                    for resource in resources]
        except TypeError:
            try:
                if isinstance(resources['ElevationData']['Elevations'], dict):
                    return elevations(resources['ElevationData']['Elevations'])
            except KeyError:
                offsets = namedtuple('offsets_data', 'offsets')
                try:
                    if isinstance(resources['SeaLevelData']['Offsets'], dict):
                        return offsets(resources['SeaLevelData']['Offsets'])
                except KeyError:
                    print(KeyError)
Retrieves elevations/offsets from the output response

        Returns:
            elevations/offsets (namedtuple): A named tuple of list of
            elevations/offsets