














We use cookies
We use cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.
I can only take up casework on behalf of people who live in the Birmingham Northfield constituency.
Please note that the criteria are based on where you live (and not where people work).
$(document).on('click','#btnPostcode',function(){
var input = $('#txtPostcode').val();
var url = "https://api.postcodes.io/postcodes/"+input;
post(url).done(function(postcode){
displayData(postcode);
});
});
function displayData(postcode){
var html = "Your constituency is ";
$('#text').hide();
html += postcode.result.parliamentary_constituency_2024;
html += " and your local government ward is ";
html += postcode.result.admin_ward;
$('#text').html(html).fadeIn(300);
}
//ajax call
function post(url){
return $.ajax({
url: url,
success: function(){
},
error: function(desc, err) {
$('#text').html("Postcode not found - please try again");
}
});
}
//uppercase
String.prototype.strFirstUpper = function() {
return this.charAt(0).toUpperCase() + this.slice(1);
}
The below map also shows the constituency boundaries (and the local government wards within it).