Skip to content

owenobyrne/node-postcodeanywhere

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-postcodeanywhere

There is also a package node-postcode-anywhere, but it was written in CoffeeScript and I don't know CoffeeScript! I needed to add other API calls so I created this.


How to use it?

var postcodeanywhere = require("postcodeanywhere");

postcodeanywhere.initialize("XXXX-XXXX-XXXX-XXXX");

// returns a list of addresses matching a term.
postcodeanywhere.CapturePlusInteractiveFind({searchTerm: "SW11 3LJ"}, function(err, data) {
	if (err) { console.log(err.description); return false; }
	console.log(data);
});

// Returns the full address details based on the Id.
postcodeanywhere.CapturePlusInteractiveRetrieve({id: "GBR|23926131"}, function(err, data) {
	if (err) { console.log(err.description); return false; }
	console.log(data);
});

Installation

Via npm:

 $ npm install postcodeanywhere

Or to install as a submodule of your project

$ git submodule add http://github.com/owenobyrne/node-postcodeanywhere.git postcodeanywhere
$ git submodule update --init

About

A Node wrapper for the Postcode Anywhere service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published