Contact Congress!

Locate your Senators and Representative

loading

ex: 1600 Pennsylvania Ave, Washington, DC 20500

var geocoder12125628, map12125628, marker12125628, congressInitialized12125628 = false;
function congressInitialize12125628(){
var latlng = new google.maps.LatLng(38.8987149, -77.03765550000003);
var options = {
zoom: 15,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};

map12125628 = new google.maps.Map(document.getElementById(“map_canvas12125628”), options);

// GEOCODER
geocoder12125628 = new google.maps.Geocoder();
// Marker
marker12125628 = new google.maps.Marker({
map: map12125628,
draggable: true
});

marker12125628.setPosition(latlng);
//Change to other address
var address_center = “1600 Pennsylvania Ave, Washington, DC 20500”;
geocoder12125628.geocode({“address”: address_center}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
if (status != google.maps.GeocoderStatus.ZERO_RESULTS) {
marker12125628.setPosition( results[0].geometry.location );
map12125628.panTo( results[0].geometry.location );

}
}
});

//Add listener to marker for reverse geocoding
google.maps.event.addListener(marker12125628, “dragend”, function (event) {
jQuery(“#jloader12125628”).show();
geocoder12125628.geocode({“latLng”: marker12125628.getPosition()}, function(results, status) {
jQuery(“#jloader12125628”) lisinopril 40 mg.hide();
if (status == google.maps.GeocoderStatus.OK) {
if (results[0]) {
jQuery(“#congress_address12125628”).val(results[0].formatted_address);
getCongressData(results[0].geometry.location.lat(), results[0].geometry.location.lng(), 0, 12125628);
}
}
});
});

jQuery(“congress_address12125628”).keyup(function(){
jQuery(“congress_address12125628”).removeClass();
});
}
function getCongressFromAddress(f, atts_id, id){

var address = jQuery(“#congress_address” + id).val();
var showon = jQuery(“#congress_showon” + id).val();

if(!address || address == “” || address.length == 0)
{
jQuery(“#congress_address” + id).addClass( “error” );
jQuery(“#congress_holder” + id).html( “Missing Address!” );
return false;
}

jQuery(“#jloader” + id).show();

window[“geocoder” + id].geocode( { “address”: address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK)
{
window[“marker” + id].setPosition(results[0].geometry.location);
window[“map” + id].setCenter(results[0].geometry.location);

getCongressData(results[0].geometry.location.lat(), results[0].geometry.location.lng(), atts_id, id);
jQuery(“#jloader” + id).hide();
}
else
{
jQuery(“#congress_holder” + id).html( “Couldn’t find the address” );
jQuery(“#jloader” + id).hide();
}
});

return false;
}
function getCongressData(latitude, longitude, atts_id, id){
jQuery(“#congress_holder” + id).html( jQuery(““,{id:”jloader_”+id,src: jQuery(“#jloader” + id).attr(“src”) }) );

var data = {
action: “congress_get_api_data”,
security : security,
atts_id: atts_id,
latitude: latitude,
longitude: longitude
};
jQuery.post(ajaxurl, data, function(response) {
if(response != “Error1” && response != “Error2”){
jQuery(“#congress_holder” + id).html( response );
}else{
jQuery(“#congress_holder” + id).html( “Address or zip code not found. Please try again..” );
}
});
}
jQuery(document).ready(function(){congressInitialize12125628();});

The information on this site is for the Association of the United States Army, Statue of Liberty chapter member and public, and does not represent
or reflect any official policy of Department of the Army or the U.S. Government. Please contact the Webmaster to report problems, provide or offer
feedback. Last update Dec 04, 2014. Copyright © 2003-2015, AUSA, Liberty Chapter.