How to convert post code to city name, is there an API available?
You need a service that does geocoding.
Yahoo's Geocoder API is getting much better results globally.
110021
is the postal code for New Delhi among several other places in the world.
This seems to get them all.
Google Maps API is another such service but I'm not happy with the geocoded results as I don't get all results back for 110021
.
geocoder = new google.maps.Geocoder();
geocoder.geocode({ 'address': '110021'}, function(results, status) {
console.log(results);
});