On 15/06/11 12:40, Stephen Booth wrote:
Regarding development time, I'd be surprised if you couldn't get a
module/function/component someone has already written to validate a
postcode. If you can't, you could write one and make it available!
Write once, use often.
If you want to validate and format a postcode in PHP or JavaScript, this
works well:
http://www.braemoor.co.uk/software/postcodes.shtml
If you want to verify a postcode (i.e. check that it actually exists),
use the MaPit API:
http://mapit.mysociety.org/
I have a minimal library if you just want to check postcodes and are
using PHP:
https://github.com/pwaring/mapit-lookup
--
Paul Waring
http://www.pwaring.com
_______________________________________________
developers-public mailing list
[email protected]
https://secure.mysociety.org/admin/lists/mailman/listinfo/developers-public
Unsubscribe:
https://secure.mysociety.org/admin/lists/mailman/options/developers-public/archive%40mail-archive.com