# Geokit - find within fuzzy locations

**URL:** <https://www.ruby-forum.com/t/geokit-find-within-fuzzy-locations/174827>\
**Category:** Rails\
**Created:** [September 2, 2009, 8:30pm UTC](https://www.ruby-forum.com/t/geokit-find-within-fuzzy-locations/174827 "2009-09-02T20:30:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ji123](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecccb3/32.png) [@ji123](https://www.ruby-forum.com/u/ji123)\
**Post date:** [September 2, 2009, 8:30pm UTC](https://www.ruby-forum.com/t/geokit-find-within-fuzzy-locations/174827/1 "2009-09-02T20:30:21Z")

</div>

I’m using Geokit gem to query mappable records within some distance to a  
mappable user.

When geocoding an address such as “Madrid”, lat&lng represent a point,  
in this case the center of the city.

Suppose I have some records with location “Madrid”, which are mapped  
with lat & lng to the center of the city. When querying for the closest  
record, the inaccuracy of the address will prevent the query from  
working appropriately. If the user’s close to the center, records that  
are anywhere in the city might be returned anyway.

A similar effect would happen if the user’s location is inaccurate.

Is it possible to take into account the “size” or “fuzziness” of the  
location in geokit queries?
