(all distances are in miles)
>> Fan.count( :origin => 'Los Angeles, CA', :within => 100)
=> 902
>> Fan.count( :origin => 'San Francisco, CA', :within => 20)
=> 3179
>> Fan.count( :origin => 'San Jose, CA', :within => 20)
=> 6083
>> f = Fan.find(2)
=> #
>> san_jose_convention_center = Geokit::LatLng.new(37.3277, -121.890028)
=> #>> f.distance_to(
(
Read more... )