o
    …9jô  ã                   @   s&   d dl Z d dlZe  d¡ dd„ ZdS )é    Nzhttps://xkcd.com/353/c                 C   s`   t j|dd� ¡ }dd„ |dd… |dd… fD ƒ\}}td| |d	d… ||d	d… f ƒ dS )
zŽCompute geohash() using the Munroe algorithm.

    >>> geohash(37.421542, -122.085589, b'2005-05-26-10458.68')
    37.857713 -122.544543

    F)Úusedforsecurityc                 S   s   g | ]}d t  d| ¡ ‘qS )z%fz0.)ÚfloatÚfromhex)Ú.0Úx© r   ú"/usr/lib/python3.10/antigravity.pyÚ
<listcomp>   s    zgeohash.<locals>.<listcomp>Né   é    z	%d%s %d%sé   )ÚhashlibÚmd5Ú	hexdigestÚprint)ÚlatitudeÚ	longitudeÚdatedowÚhÚpÚqr   r   r   Úgeohash   s   &(r   )Ú
webbrowserr   Úopenr   r   r   r   r   Ú<module>   s   
