ó
ÎrOc           @   s/  d  d l  m Z e d ƒ Z e d ƒ Z e d ƒ Z d Z d Z d Z e	 d ƒ Z
 d Z d	 Z d
 Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z i e d 6e d 6e d 6Z i e d 6e d 6e d 6Z i e
 d 6e d 6e d 6Z i e d 6e d 6e d 6Z i e d 6e d 6e d 6Z i e d 6e d 6e d 6Z e e d „ Z d Z i d „  d 6d „  d 6d „  d 6d „  d 6d „  d  6d! „  d" 6Z  e d d# „ Z! dD dE dF dG dH dI dJ dK dL dM dN dO dP dQ g Z" e# e" Œ  \ Z$ Z% e& d@ „  e' e$ ƒ Dƒ ƒ Z( e& dA „  e' e% ƒ Dƒ ƒ Z) dB „  Z* dC S(R   iÿÿÿÿ(   t   unitsi°   i2   i3   t    t   't   "s   &deg;s   &prime;s   &Prime;s   &#176;s   &#8242;s   &#8243;s   &xB0;s   &x2032;s   &x2033;t   degt   arcmint   arcsecs>   %(degrees)d%(deg)s %(minutes)d%(arcmin)s %(seconds)s%(arcsec)sc      	   C   sj   t  j d |  t |  ƒ ƒ } t  j d | t | ƒ ƒ } t | d |  d t | ƒ d t | ƒ ƒ} | | S(   Nt   degreest
   arcminutest   minutest   seconds(   R    R   t   intt
   arcsecondst   dictt   abs(   R   t   formatt   symbolsR   R   t   format_dict(    (    s+   /var/www/python/geopy-trunk/geopy/format.pyt   format_degrees    s    s   %(magnitude)s%(unit)sc         C   s   |  S(   N(    (   t   d(    (    s+   /var/www/python/geopy-trunk/geopy/format.pyt   <lambda>-   s    t   kmc         C   s   t  j d |  ƒ S(   Nt
   kilometers(   R    t   meters(   R   (    (    s+   /var/www/python/geopy-trunk/geopy/format.pyR   .   s    t   mc         C   s   t  j d |  ƒ S(   NR   (   R    t   miles(   R   (    (    s+   /var/www/python/geopy-trunk/geopy/format.pyR   /   s    t   mic         C   s   t  j d |  ƒ S(   NR   (   R    t   feet(   R   (    (    s+   /var/www/python/geopy-trunk/geopy/format.pyR   0   s    t   ftc         C   s   t  j d |  ƒ S(   NR   (   R    t   nautical(   R   (    (    s+   /var/www/python/geopy-trunk/geopy/format.pyR   1   s    t   nmc         C   s   t  j d |  ƒ S(   NR   (   R    R   (   R   (    (    s+   /var/www/python/geopy-trunk/geopy/format.pyR   2   s    t   nmic         C   s&   t  | |  ƒ } | i | d 6| d 6S(   Nt	   magnitudet   unit(   t   DISTANCE_UNITS(   R   R   R!   R    (    (    s+   /var/www/python/geopy-trunk/geopy/format.pyt   format_distance4   s    t   northt   Ns   north by eastt   NbEs   north-northeastt   NNEs   northeast by northt   NEbNt	   northeastt   NEs   northeast by eastt   NEbEs   east-northeastt   ENEs   east by northt   EbNt   eastt   Es   east by southt   EbSs   east-southeastt   ESEs   southeast by eastt   SEbEt	   southeastt   SEs   southeast by southt   SEbSc         c   s%   |  ] \ } } | d  | f Vq d S(   g     €&@N(    (   t   .0t   nR   (    (    s+   /var/www/python/geopy-trunk/geopy/format.pys	   <genexpr>I   s    c         c   s%   |  ] \ } } | d  | f Vq d S(   g     €&@N(    (   R6   R7   R   (    (    s+   /var/www/python/geopy-trunk/geopy/format.pys	   <genexpr>J   s    c         C   s   d  S(   N(    (   R   (    (    s+   /var/www/python/geopy-trunk/geopy/format.pyt   format_directionL   s    N(   R$   R%   (   s   north by eastR&   (   s   north-northeastR'   (   s   northeast by northR(   (   R)   R*   (   s   northeast by eastR+   (   s   east-northeastR,   (   s   east by northR-   (   R.   R/   (   s   east by southR0   (   s   east-southeastR1   (   s   southeast by eastR2   (   R3   R4   (   s   southeast by southR5   (+   t   geopyR    t   unichrt   DEGREEt   PRIMEt   DOUBLE_PRIMEt   ASCII_DEGREEt   ASCII_PRIMEt   ASCII_DOUBLE_PRIMEt   chrt   LATIN1_DEGREEt   HTML_DEGREEt
   HTML_PRIMEt   HTML_DOUBLE_PRIMEt   XML_DECIMAL_DEGREEt   XML_DECIMAL_PRIMEt   XML_DECIMAL_DOUBLE_PRIMEt   XML_HEX_DEGREEt   XML_HEX_PRIMEt   XML_HEX_DOUBLE_PRIMEt   ABBR_DEGREEt   ABBR_ARCMINt   ABBR_ARCSECt   DEGREES_FORMATt   UNICODE_SYMBOLSt   ASCII_SYMBOLSt   LATIN1_SYMBOLSt   HTML_SYMBOLSt   XML_SYMBOLSt   ABBR_SYMBOLSR   t   DISTANCE_FORMATR"   R#   t   _DIRECTIONSt   zipt
   DIRECTIONSt   DIRECTIONS_ABBRR   t	   enumeratet   ANGLE_DIRECTIONSt   ANGLE_DIRECTIONS_ABBRR8   (    (    (    s+   /var/www/python/geopy-trunk/geopy/format.pyt   <module>   sl   




	