I am using rails to geocode zip codes. As a test I used the code on zip code 60601 using:
Geocoder.search(60601).first.latitude
However, this results in 9.42233953846154, which is incorrect. The correct value should be 41.something. So it's way off.
Is there a better way to get an accurate result?
You should try,
because this specific '60601' zipcode has multiple locations on Earth so u need to find a specific address from the hash here, when you search 60601 then you can check that there is a total of 3 location there.