_f&ddlZddlZGddZdZedkrrddlZejZe de de Zej Z eZee ZeedSdS) NceZdZdZdZdS) Naver_MapcXd|_d|_d|_|j|jd|_dS)N qn386nob46(ozZTMIxI6ixH5dnGxLYsu7DolhN8jucUatYysJv1z=https://naveropenapi.apigw.ntruss.com/map-geocode/v2/geocode?)zX-NCP-APIGW-API-KEY-IDzX-NCP-APIGW-API-KEY) Client_ID Client_Secret api_base_urlheaders)selfs P/home/juni/문서/경상북도_CCTV_설치_분석/tools/geocode/naver_geocode.py__init__zNaver_Map.__init__s6%G]'+~$($6   c|jd|z}tj||j}|jdkrd}nd}|r|ddkrg|dd d krC|}|d d d }|d d d }|||g}|St ||r't |ddS)Nzquery=)r TFstatusINVALID_REQUESTmetacountr addressesyx)r requestsgetr status_codejsonprint) r addrapi_urlr http_normaldatalatlongcoords r geocodingzNaver_Map.geocodings #otoo5 L$, 7 7 7 =C  KKK  16688H-1BB qvvxxPVGWX_G`bcGc 6688D{#A&s+C $Q',D$%EL !&&((OOO *affhhx()))5rN)__name__ __module__ __qualname__rr&rr rrs2   rrc fd|DS)Nc g|] }| Sr*r*).0itemis r zextract..$s $ $ $DG $ $ $rr*)lstr/s `r extractr2#s $ $ $ $ $ $ $$r__main__z --addressu.위경도를 조회할 지번/도로명 주소)typehelp)pandaspdrrr2r'argparseArgumentParserargs add_argumentstr parse_argsaddressr naver_geocoder&resultrr*rr rAs>%%% zOOO "8 " $ $Dk2bccc ??  D