CrossClj

0.2.0 docs

SourceDocs



RECENT
    VARS
    ->postalcode
    base-url
    date-formatter
    find-latest-file
    languages
    load-postalcodes
    str->date
    types
    url

    « Index of all namespaces of this project

    Retrieve postal code data from Posti HTTP server.
    
    - [Source](http://www.posti.fi/yritysasiakkaat/laheta/postinumeropalvelut/postinumerotiedostot.html)
    - [Service description and terms](http://www.posti.fi/liitteet-yrityksille/ehdot/postinumeropalvelut-palvelukuvaus-ja-kayttoehdot.pdf)
    (find-latest-file)
    Finds a href to PCF_ file in the directory root.
    
    (load-postalcodes)(load-postalcodes {:keys [filename now?]})
    Download postal code data from Posti HTTP and parse to Clojure maps.
    
    Options:
    - :filename - (optional) Filename to download. By default check the server root for latest PCF_*.zip file.
      If you want to use specific version, provide path to file in arch folder.
    (str->date s)
    Parse date in format yyyyMMdd to LocalDate
    
    (url filename)