alphagov/imminence — pull request #2 by fatbusinessman (2012-08-20 16:19:31+00:00)
Title: Extract places

Hoo boy.

This branch consists of:

* Pulling places out from being embedded within data sets and into their own model (see the `extract_places` Rake task)
* Updating Imminence to use Mongo’s `geoNear` query type, with spherical distance calculations. This involved changing the representation of locations from a coordinate pair to an ordered hash
* Refactoring out a load of mess to do with calculations and unit conversion, resulting in the `Distance` and `Point` value types
* A whole boatload of tests