def __get_ws_distance(wstation, latitude, longitude):
if wstation:<EOL><INDENT>try:<EOL><INDENT>wslat = float(wstation[__BRLAT])<EOL>wslon = float(wstation[__BRLON])<EOL>dist = vincenty((latitude, longitude), (wslat, wslon))<EOL>log.debug("<STR_LIT>"<EOL>"<STR_LIT>", dist, latitude,<EOL>longitude, wslat, wslon)<EOL>return dist<EOL><DEDENT>except (ValueError, TypeError, KeyError):<EOL><INDENT>return None<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT>
Get the distance to the weatherstation from wstation section of xml.

    wstation: weerstation section of buienradar xml (dict)
    latitude: our latitude
    longitude: our longitude