# Rounding Errors using GeoKit

**URL:** <https://www.ruby-forum.com/t/rounding-errors-using-geokit/149036>\
**Category:** Rails\
**Created:** [September 19, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/rounding-errors-using-geokit/149036 "2008-09-19T16:30:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4af34b/32.png) [@adam](https://www.ruby-forum.com/u/adam)\
**Post date:** [September 19, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/rounding-errors-using-geokit/149036/1 "2008-09-19T16:30:57Z")

</div>

Hi all,

I’m trying to use the excellent GeoKit plugin to geocode addresses  
entered by users. I use GeoKit to get latitude and longitude values,  
then plot these using Google Maps.

The problem I have is that the maps produced tend to be slightly off  
where they should be. Nearby addresses seem to be grouped to one  
point, which suggests that the problem is in rounding the lat and lng  
values produced by the geocoding. I think this is internal to GeoKit -  
I thought it might be a database problem, but I’ve tried setting the  
DB to very high precision with no luck. Has anyone else encountered  
this problem and found a solution?

Many thanks,  
Adam
