Distance is not working

Hi.
I want to write a script which sorts on the basis of geographical
distance.
For some unknown reason it is not working.
Can somebody have a look at it?
The code is at git://gist.github.com/1068903.git

Regards.

can you try and do doc['location']. (note, this can get tricky with curl).

On Thursday, July 7, 2011 at 7:50 AM, nachiket bhagwat wrote:

Hi.
I want to write a script which sorts on the basis of geographical
distance.
For some unknown reason it is not working.
Can somebody have a look at it?
The code is at git://gist.github.com/1068903.git (Distance not working · GitHub)

Regards.