def parse_administrative_area(self):
        data = list()

        administrative_areas = [
            'administrative_area_level_1', 'administrative_area_level_2', 'administrative_area_level_3'
        ]

        for area_type in administrative_areas:
            name = self.search_address_components(area_type)
            short_name = self.search_address_components(area_type, True)

            if name:
                data.append(dict(name=name, short_name=short_name, area_type=area_type))

        return data
Returns a dictionary object that represents a switchport
dataset/ETHPy150Open slawek87/geolocation-python/geolocation/geocode/parsers.py/GeocodeParser.parse_administrative_area--crossover with--dataset/ETHPy150Open arista-eosplus/pyeapi/pyeapi/api/switchports.py/Switchports.get