

@property
def coordinates(self):
    '\n    Tuple of Decimals in the form of (lat, lon) or None\n    '
    if (not getattr(self, '_coordinates', False)):
        query_params = {
            'prop': 'coordinates',
            'colimit': 'max',
            'titles': self.title,
        }
        request = _wiki_request(query_params)
        if ('query' in request):
            coordinates = request['query']['pages'][self.pageid]['coordinates']
            self._coordinates = (Decimal(coordinates[0]['lat']), Decimal(coordinates[0]['lon']))
        else:
            self._coordinates = None
    return self._coordinates

dataset/ETHPy150Open goldsmith/Wikipedia/wikipedia/wikipedia.py WikipediaPage.coordinates/original