

@cache
def geosearch(latitude, longitude, title=None, results=10, radius=1000):
    '\n  Do a wikipedia geo search for `latitude` and `longitude`\n  using HTTP API described in http://www.mediawiki.org/wiki/Extension:GeoData\n\n  Arguments:\n\n  * latitude (float or decimal.Decimal)\n  * longitude (float or decimal.Decimal)\n\n  Keyword arguments:\n\n  * title - The title of an article to search for\n  * results - the maximum number of results returned\n  * radius - Search radius in meters. The value must be between 10 and 10000\n  '
    search_params = {
        'list': 'geosearch',
        'gsradius': radius,
        'gscoord': '{0}|{1}'.format(latitude, longitude),
        'gslimit': results,
    }
    if title:
        search_params['titles'] = title
    raw_results = _wiki_request(search_params)
    if ('error' in raw_results):
        if (raw_results['error']['info'] in ('HTTP request timed out.', 'Pool queue is full')):
            raise HTTPTimeoutError('{0}|{1}'.format(latitude, latitude))
        else:
            raise WikipediaException(raw_results['error']['info'])
    search_pages = raw_results['query'].get('pages', None)
    if search_pages:
        search_results = (v['title'] for (k, v) in search_pages.items() if (k != '-1'))
    else:
        search_results = (d['title'] for d in raw_results['query']['geosearch'])
    return list(search_results)

dataset/ETHPy150Open goldsmith/Wikipedia/wikipedia/wikipedia.py geosearch/VarMisuse@119/369 `longitude`->`latitude`