A glossary of intuitive, universally unambiguous postcode definitions and procedures.
enable static-type checks for postcodes
Postcode
=AsOfGlossary<string, 'Postcode'>
isPostcode
declare useful procedures to operate on postcodes
- e.g.,
getCentroidOfPostcode
npm install domain-glossary-postcode
const postcode: Postcode;
const postcode: Postcode = isPostcode.assure('33127');
const centroid: Geocode = getCentroidOfPostcode('33127')