

def _parse_json(self, page, exactly_one=True):
    '\n        Returns location, (latitude, longitude) from JSON feed.\n        '
    place = page.get('result', None)
    if (not place):
        self._check_status(self.get('status'))
        return None

    def parse_place(place):
        '\n            Get the location, lat, lng from a single JSON place.\n            '
        location = place.get('level')
        latitude = place['location']['lat']
        longitude = place['location']['lng']
        return Location(location, (latitude, longitude), place)
    if exactly_one:
        return parse_place(place)
    else:
        return [parse_place(item) for item in place]

dataset/ETHPy150Open geopy/geopy/geopy/geocoders/baidu.py Baidu._parse_json/VarMisuse@41/75 `page`->`self`