ADVERTISEMENT CODE 1
The location finding tool can be used by people who are traveling to a new city and don’t know where they are going. All they need to do is enter their destination .It’s 100% Real and Free.
ADVERTISEMENT CODE
ADVERTISEMENT CODE
function rohan(){ var pin=document.getElementById('pin').value; fetch("https://api.postalpincode.in/pincode/"+pin) .then((response) => { return response.json();
} ) .then((data) => { var message = ""; var postOffices = "";
if(data && data.length) { message = data[0].Message || "No record";
if(data[0].PostOffice && data[0].PostOffice.length) { for(var x in data[0].PostOffice){
// Save the fields of each post officces const officeBlock = data[0].PostOffice[x].Block; const officeBranchType = data[0].PostOffice[x].BranchType; const officeCircle = data[0].PostOffice[x].Circle; const officeCountry = data[0].PostOffice[x].Country; const officeDeliveryStatus = data[0].PostOffice[x].DeliveryStatus; const officeDescription = data[0].PostOffice[x].Description; const officeDistrict = data[0].PostOffice[x].District; const officeDivision = data[0].PostOffice[x].Division; const officeName = data[0].PostOffice[x].Name; const officePincode = data[0].PostOffice[x].Pincode; const officeRegion = data[0].PostOffice[x].Region; const officeState = data[0].PostOffice[x].State;
// Create a string with the records
postOffices = postOffices +"Block- " +officeBlock + "
Branch type- "
+ officeBranchType + "
Country- "
+ officeCountry + "
Delivary-type- "
+ officeDeliveryStatus + "
District "
+ officeDistrict + "
Division- "
+ officeDivision + "
Post Office- "
+ officeName + "
Pincode- "
+ officePincode + "
Region- "
+ officeRegion + "
State- "
+ officeState + "
";
}
}
// Show the message var messageElem = document.getElementById('result-message') messageElem.innerHTML= message;
// Show the records var postOfficesElem = document.getElementById('result-post-offices') postOfficesElem.innerHTML= postOffices;
}
}).catch((error) => document.getElementById('result-message').innerHTML="No record"); }
ADVERTISEMENT CODE
function rohan2(){ var pin2=document.getElementById('pin2').value; fetch("https://api.postalpincode.in/postoffice/"+pin2) .then((response) => { return response.json();
} ) .then((data) => { var message = ""; var postOffices = "";
if(data && data.length) { message = data[0].Message || "No record";
if(data[0].PostOffice && data[0].PostOffice.length) { for(var x in data[0].PostOffice){
// Save the fields of each post officces const officeBranchType = data[0].PostOffice[x].BranchType; const officeCircle = data[0].PostOffice[x].Circle; const officeCountry = data[0].PostOffice[x].Country; const officeDeliveryStatus = data[0].PostOffice[x].DeliveryStatus; const officeDescription = data[0].PostOffice[x].Description; const officeDistrict = data[0].PostOffice[x].District; const officeDivision = data[0].PostOffice[x].Division; const officeName = data[0].PostOffice[x].Name; const officePincode = data[0].PostOffice[x].Pincode; const officeRegion = data[0].PostOffice[x].Region; const officeState = data[0].PostOffice[x].State;
// Create a string with the records
postOffices = postOffices +"Branch type- "
+ officeBranchType + "
Country- "
+ officeCountry + "
Delivary-type- "
+ officeDeliveryStatus + "
District- "
+ officeDistrict + "
Division- "
+ officeDivision + "
Post Office- "
+ officeName + "
Pincode- "
+ officePincode + "
Region- "
+ officeRegion + "
State- "
+ officeState + "
";
}
}
// Show the message var messageElem = document.getElementById('result-message') messageElem.innerHTML= message;
// Show the records var postOfficesElem = document.getElementById('result-post-offices') postOfficesElem.innerHTML= postOffices;
}
}).catch((error) => document.getElementById('result-message').innerHTML="No record"); }
var divs = ["Menu1", "Menu2", "Menu3", "Menu4"]; var visibleDivId = null; function toggleVisibility(divId) { if(visibleDivId === divId) { //visibleDivId = null; } else { visibleDivId = divId; } hideNonVisibleDivs(); } function hideNonVisibleDivs() { var i, divId, div; for(i = 0; i < divs.length; i++) { divId = divs[i]; div = document.getElementById(divId); if(visibleDivId === divId) { div.style.display = "block"; } else { div.style.display = "none"; } } }