Hasquel utility to play with GeoNames CSVs. It is intended to be used as Sample Haskell code for my interviews
<geonames_file>
For example:
runhaskell hasquel.hs US.txt 40.69 -73.82
nix-shell --run "runhaskell hasquel.hs US.txt"
This repo contains a 10 records US.txt file, but the original file can be found at http://download.geonames.org/export/dump/US.zip (It is called US.txt)
doctest hasquel.hs
nix-build release.nix
and execute by doing ./result/bin/hasquel
This calculates distance from south richmod in queens to all other locations:
runhaskell hasquel.hs US.txt 40.693618 -73.821014