ge
hou
ghtfulnessIntroducing Pat, au ultra-lightweight Ruby gem for postcode->geolocation in the UK.
It’s easy to install:
sudo gem install pat
And easy to use. (Try it from the command-line with irb -r rubygems -r pat)
postcode = Pat.get(“SW1A 2TT”)
postcode["geo"]["lat"]
=> “51.502308″
postcode["geo"]["lng"]
=> “-0.124345″
I hope someone finds it useful.
I'm a web entrepreneur, just moved to London to work on a new startup. I'm at my best when meeting people, having new ideas and making them happen.