def geo_filter(d):
page = d["<STR_LIT>"]<EOL>if not "<STR_LIT>" in page:<EOL><INDENT>return None<EOL><DEDENT>title = page["<STR_LIT:title>"]<EOL>if skip_article(title):<EOL><INDENT>LOG.info("<STR_LIT>", title)<EOL>return None<EOL><DEDENT>text = page["<STR_LIT>"]["<STR_LIT:text>"]<EOL>if not utils.is_str_type(text):<EOL><INDENT>if "<STR_LIT>" in text:<EOL><INDENT>text = text["<STR_LIT>"]<EOL><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT><DEDENT>LOG.debug("<STR_LIT>")<EOL>LOG.debug(title)<EOL>LOG.debug("<STR_LIT>")<EOL>LOG.debug(text)<EOL>c = find_geo_coords(text)<EOL>u = wikip_url(title)<EOL>"""<STR_LIT>"""<EOL>return {<EOL>"<STR_LIT:title>": title,<EOL>"<STR_LIT:url>": u,<EOL>"<STR_LIT>": c,<EOL>"<STR_LIT>": page["<STR_LIT>"].get("<STR_LIT>")<EOL>} if c else None<EOL>
Inspects the given Wikipedia article dict for geo-coordinates.

    If no coordinates are found, returns None.  Otherwise, returns a new dict
    with the title and URL of the original article, along with coordinates.