Liking cljdoc? Tell your friends :D

com.eldrix.nhspd.search

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.
raw docstring

build-indexclj

(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.
sourceraw docstring

fetch-postcodeclj

(fetch-postcode searcher pc)

Fetch the postcode pc specified.

  • pc : a UK postal code; will be coerced into the PCD2 postcode standard.
Fetch the postcode `pc` specified.
- pc : a UK postal code; will be coerced into the PCD2 postcode standard.
sourceraw docstring

fetch-wgs84clj

(fetch-wgs84 searcher pc)

Returns WGS84 geographical coordinates for a given postcode.

  • pc : a UK postal code; will be coerced into the PCD2 postcode standard.
Returns WGS84 geographical coordinates for a given postcode.
- pc : a UK postal code; will be coerced into the PCD2 postcode standard.
sourceraw docstring

make-postcode-docclj

(make-postcode-doc {:strs [PCDS PCD2 OSNRTH1M OSEAST1M] :as pc})

Turn a postcode into a Lucene document.

Turn a postcode into a Lucene document.
sourceraw docstring

open-index-readerclj

(open-index-reader filename)
source

open-index-writerclj

(open-index-writer filename)
source

write-batch!clj

(write-batch! writer postcodes)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close