Graticule and acts_as_geocodable go international
The single biggest request that I’ve gotten for Graticule and acts_as_geocodable has been for international support. So, for those outside the US (50% that read this blog according to google analytics), I have a present for you.
Last weekend I committed support for Local Search Maps (thanks to James Stewart), and PostcodeAnywhere, both of which have some international support, at least for Canada and Europe. I also added geocoder.ca.
Most of the international geocoding services seem to require a little more structured parameters, so with Graticule 0.2, all of the geocoders can take a hash (and some require it). As a result of gaining international support, the field names that Graticule uses have been changed to be more international-friendly: street, locality, region, postal_code, and country.
Geocoding IP Addresses
Several people mentioned that they would rather use acts_as_geocodable, but chose to use GeoKit, another good geocoding library (but with a little different philosophy), because it had support for geocoding IP addresses. So, with a flick of the wrist and a twitch of the nose, Graticule now supports HostIP for geocoding IP addresses:
Along with this, acts_as_geocodable has a helper method, remote\_location
:
Be careful not to rely too heavily on remote_location because the location of many IP addresses cannot be determined through HostIP.
Feedback
I’m just an ignorant North-American, so I would love some feedback from people using Graticule and acts_as_geocodable outside the US.