a blog for those who code

Wednesday, 12 August 2015

Lookup Indian PinCode Information in NodeJS

In this post we are going to discuss about getting Indian Pincode Information in NodeJS from the package pincode. Pincode is a package in npm from where you can search the pincode information by providing the pincode or the area name. This will be useful for people who wants to target all the areas in India. According to pincode, it is a node module which will easily lookup Indian PinCode Information.

Installation Using npm : npm install pincode

Usage : var pin = require('pincode');

Search By PinCode

pin.seachByPin('560057', function (response){
    response.forEach(function (data) {
        console.log(data);
    });
});

Search by Area

pin.seachByArea('Chandni Chowk', function (response) {
    response.forEach(function (data) {
        console.log(data);
    });
});

Search By Taluk

pin.seachByTaluk('Uttarpara', function (response) {
    response.forEach(function (data) {
        console.log(data);
    });
});

Search By District

pin.seachByDistrict('Bangalore', function (response) {
    response.forEach(function (data) {
        console.log(data);
    });
});

Git Hub : https://github.com/codingdefined/pincode

Please Like and Share the Blog, if you find it interesting and helpful.

1 comment:

  1. Thankk you, i have built a website using this code. Found the response and stored in sql. http://www.pincodebox.in/pincode/744301

    ReplyDelete