2
$('#address-dropdown').autocomplete({
//Use geocoder to fetch lat+long values from an address input using google maps API
source: function(request, response) {
geocoder.geocode({'address': request.term }, function(results, status) {
response($.map(results, function(item) {
return {
label: item.formatted_address,
value: item.formatted_address,
location: item.geometry.location,
latitude: item.geometry.location.lat(),
longitude: item.geometry.location.lng()
}
}));
})
},
私は、彼らが許容エリア内に住んでいるかどうかを確認するために使用する「POSTAL_CODE」を返す機能する必要があります。ここでは、スニペットです。ここでの出力例は次のとおりです。http://maps.googleapis.com/maps/api/geocode/json?address=1601+Main+St+Eaton+Rapids+MI+48864&sensor=false
私はPOSTAL_CODE情報をターゲット可能性がどのように?私の例で