An NHSPD file-based index providing postcode search functionality. This is currently using Apache Lucene as a key-value store but its indexing capabilities support future plans for better geographical queries.
An NHSPD file-based index providing postcode search functionality. This is currently using Apache Lucene as a key-value store but its indexing capabilities support future plans for better geographical queries.
(build-index ch out)
Build an index from NHSPD postcode file streamed on the channel specified.
Build an index from NHSPD postcode file streamed on the channel specified.
(fetch-postcode searcher pc)
Fetch the postcode pc
specified.
Fetch the postcode `pc` specified. - pc : a UK postal code; will be coerced into the PCD2 postcode standard.
(fetch-wgs84 searcher pc)
Returns WGS84 geographical coordinates for a given postcode.
Returns WGS84 geographical coordinates for a given postcode. - pc : a UK postal code; will be coerced into the PCD2 postcode standard.
(make-postcode-doc {:strs [PCDS PCD2 OSNRTH1M OSEAST1M] :as pc})
Turn a postcode into a Lucene document.
Turn a postcode into a Lucene document.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close