2009-04-16 4 views
0

웹 사이트에서 배후의 주소 확인을 수행하는 것이 오늘날 일반적으로 보입니다. 예를 들어, 우편 번호의 4 자리 확장자는 일반적으로 채워집니다. 4 자리 우편 번호 확장을 작성하는 것 외에도 주소가 속한 카운티를 알고 싶습니다.우편 주소 확인 등 우편 번호를 입력하십시오.

이것은 ASP.NET AJAX와 jQuery의 모든 후크가 이미있는 ASP.NET 3.5 응용 프로그램에서 활용됩니다.

어떤 서비스가이 작업을 수행 할 수 있습니까? 웹 서비스, 제 3 자 포함 등

UI 구조

ADDRESS_LINE1 
ADDRESS_LINE2 
CITY 
STATE 
ZIP 

답변

1

현금이있는 경우 NetAddress은 .NET 용으로 제작되었습니다.

SO 앞으로도 문의해야합니다 : here.

+0

NetAddress에 카운티가 포함되어 있지 않습니다 (아직 카운티가 포함 된 카운티를 찾지 못했습니다). –

0

미국 우편 서비스의 웹 사이트 lists many 주소 확인 서비스를 제공합니다. Publication 28 (PDF)은 미국 주소의 주소 지정 표준입니다. 불행히도, 그것은 당신의 스키마보다 복잡합니다.

0

라이센스 옵션에 따라 UPS은 무료가 될 수 있습니다.

+0

UPS 주소 확인 API는 UPS를 통해 패키지를 전달하려는 응용 프로그램에만 사용을 제한합니다. 무료이지만 데이터 입력 중 주소를 지우는 용도로만 사용할 수는 없습니다. – NotMe

0

이것은 오래되었지만 누군가가 도움이 될 수 있다면 내 시간을 잘 보냈습니다. 당신이 찾고있는 것이 두 가지 방법으로 성취 될 수있는 것처럼 들립니다.

1 - 주소를 기반으로 카운티를 추가하려는 경우 간단한 ZIP 코드/카운티 데이터베이스를 사용하여이 작업을 수행 할 수 있습니다.

2 - 주소를 표준화하고 확인한 다음 카운티를 추가하려면 자주 업데이트되는 USPS 데이터를 제공하는 서비스가 필요합니다. 이는 LiveAddress라는 표준 주소 확인 API의 일부입니다. LiveAddress

나는 qualifiedaddress라는 주소 확인 회사에서 일합니다.

1
<script type="text/javascript"> 
    function OpenChild() { 
    var Area = document.getElemenenter code heretById('<%=ddlArea.ClientID %>'); 
    var City = document.getElementById('<%=ddlCity.ClientID %>'); 
    var State = document.getElementById('<%=ddlstate.ClientID %>'); 
    var Country = document.getElementById('<%=ddlCountryName.ClientID %>'); 
    if (Area.value != "" && City.value != "" && State.value != "" && Country.value != "") { 
    var MyArgs = new Array(Area.options[Area.selectedIndex].text, 
    City.options[City.selectedIndex].text, 
    State.options[State.selectedIndex].text, 
    Country.options[Country.selectedIndex].text); 
    var WinSettings = "center:yes;resizable:no;dialogHeight:500px;dialogWidth:900px;" 
    // ALTER BELOW LINE - supply correct URL for Child Form 
    var MyArgs = window.showModalDialog("http://YourURL/GoogleMapLocationSelector.aspx?Area=" + MyArgs[0].toString() + "&City=" + MyArgs[1].toString() + "&State=" + MyArgs[2].toString() + "&Country=" + MyArgs[3].toString(), MyArgs, WinSettings); 

    if (MyArgs == null) { 
    window.alert("Error occurred while setting geo location."); 
    } 
    else { 
    document.getElementById('<%=txtLongitude.ClientID %>').value = MyArgs[0].toString(); 
    document.getElementById('<%=txtLatitude.ClientID %>').value = MyArgs[1].toString(); 
    document.getElementById('<%=hfLatitude.ClientID %>').value = MyArgs[1].toString(); 
    document.getElementById('<%=hfLongitude.ClientID %>').value = MyArgs[0].toString(); 
    } 
    } 
    else { 
    alert("Plz Select Area/City/State"); 
    return false; 
    } 
    } 
    </script> 
+0

안녕하세요. 대답 할 때 코드를 설명하십시오. – Tim

0

많은 서비스가 있습니다. 우리는 FedEx를 통해 배송을 수행하므로 "주소 확인 서비스"를 사용합니다. API에 대한 래퍼 코드는 here입니다. FedEx의 매뉴얼은 here입니다.

기타는 minfraud입니다. 배송 및 청구 지 주소, 전화 번호, 이메일, IP 주소 등의 필드를 전달할 수 있습니다. here을 참조하십시오. 제공된 정보를 바탕으로, 당신은 다음과 같습니다 응답을 얻을 것이다 :

distance=0;countryMatch=Yes;countryCode=US;freeMail=No;anonymousProxy=No;binMatch=NA;binCountry=;err=;proxyScore=0.00;ip_region=CA;ip_city=Mountain View;ip_latitude=37.3860;ip_longitude=-122.0838;binName=;ip_isp=Google;ip_org=Google;binNameMatch=NA;binPhoneMatch=NA;binPhone=;custPhoneInBillingLoc=;highRiskCountry=No;queriesRemaining=4408;cityPostalMatch=;shipCityPostalMatch=;maxmindID=JBRH7OXI;ip_asnum=AS15169 Google Inc.;ip_userType=business;ip_countryConf=70;ip_regionConf=13;ip_cityConf=10;ip_postalCode=94040;ip_postalConf=;ip_accuracyRadius=999;ip_netSpeedCell=Corporate;ip_metroCode=807;ip_areaCode=650;ip_timeZone=America/Los_Angeles;ip_regionName=California;ip_domain=;ip_countryName=United States;ip_continentCode=NA;ip_corporateProxy=No;riskScore=34.0;prepaid=;minfraud_version=1.3;service_level=standard

MinFraud AVS 체크 사이트에서 업무를 수행하는 고객이 신뢰할 수 있는지 알아내는쪽으로 기어드.

관련 문제