Geokit issues

Yesterday while debugging an issue on our main app, I discovered that always returned a successful response when geocoding a postal code (yes, we geocode with that only). The successful response came back only with longitude and latitude values, that means, that city, province and country was nil and saved like that on our database. geocoding. url: geocoding. Address: M6K0A5. Result: < ?xml version=”1.0″ encoding=”UTF-8″ ?>


So, if you ware going to trust with your geocoding needs, be sure to do that check before saving the returned values in your database. GoogleGeocoder at least gives you an unsuccessful response…but we all know it is not as precise as


Google geocoding. Address: M6K0A5. Result: < ?xml version=”1.0″ encoding=”UTF-8″ ?>
<kml xmlns=”″><response>
Google was unable to geocode address: M6K0A5


No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

This entry was posted in Ruby on Rails. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

You must be logged in to post a comment.