(download-url url)
(download-url url out)
Download a file from the URL specified. Parameters:
out
specified, a temporary file will be created and returned.Download a file from the URL specified. Parameters: - url : the URL to fetch - out : (optional) the java.io.File/Writer/OutputStream to which to write. If no `out` specified, a temporary file will be created and returned.
(get-latest-release)
Returns information about the latest NHSPD release. At the moment, there is no available API for this, so we fake by using a local embedded datafile that can be updated with the latest release date and URL. The NHSPD is currently released quarterly.
Returns information about the latest NHSPD release. At the moment, there is no available API for this, so we fake by using a local embedded datafile that can be updated with the latest release date and URL. The NHSPD is currently released quarterly.
(stream-latest-release ch)
(stream-latest-release ch delete?)
(stream-latest-release ch delete? close?)
Blocking; streams the latest release of the NHSPD.
As we manually track the latest release in resources/nhspd.edn because as far as I know there's no download API, only a portal, we log a warning if the latest release is more than 3 months in the past.
Blocking; streams the latest release of the NHSPD. As we manually track the latest release in resources/nhspd.edn because as far as I know there's no download API, only a portal, we log a warning if the latest release is more than 3 months in the past.
(stream-release f ch)
(stream-release f ch close?)
Blocking; stream postcode data from the zip file to the channel. Parameters:
Blocking; stream postcode data from the zip file to the channel. Parameters: - f : filename or java.io.File for the NHSPD zip file. - ch : clojure.core.async channel - close? : optional; whether to close the channel when done.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close