Posted By: Brandon Keepers
Date: 2007-03-20 22:55
Summary: graticule 0.2.0
Project: Graticule

Graticule is an API that provides a common interface to popular geocoding services.

Graticule version 0.2.0 has been released with support for PostcodeAnywhere and Local Search Maps, both which support international addresses.

g = Graticule.service(:postcode_anywhere).new('account, 'license')
g.locate :locality => 'London', :country => 'UK'

Support was also added for geocoding IP addresses:

g = Graticule.service(:host_ip).new
g.locate '64.233.187.99'

More information available at:

http://rubyforge.org/projects/graticule

Feedback is welcome, especially from users outside the US. Sign up for the mailing list at:

http://rubyforge.org/mailman/listinfo/graticule-users

Changes:

0.2.0 (2007-03-17)
* changed city to locality, state to region, and zip to postal_code
* added support for PostcodeAnywhere
* added support for Local Search Maps (James Stewart)
* added IP-based geocoder
* moved geocoders to Graticule::Geocoder namespace
* fixed Google geocoder (again)
* made Yahoo geocoder consistent with others by returning 1 result
* geocoders can how take a Hash (:street, :locality, :region, :postal_code, :country)
or a Graticule::Location for the #locate call

Latest News
Version 1.6.0 of Mxx_ru released
    Nicolay Shmakov - 2013-06-19 12:07
TZInfo v1.0.0 and TZInfo::Data v1.2013.3 Released
    Philip Ross - 2013-06-02 17:12
icalendar 1.4.0 Released
    Ryan Ahearn - 2013-05-21 23:17
BinData 1.5.0 - source moved to github
    Dion Mendel - 2013-05-21 11:10
v13.5.0 Released !!
    id 774 - 2013-05-18 12:28

 

Forums | Admin

Discussion Forums: -ann--graticule-0.2.0-released

Start New Thread Start New Thread

 

By: Oshoma Momoh
Ampersand Geocoding Problem [ reply ]  
2007-12-18 06:50
I ran into some trouble using Graticule's google geocoder to geocode street addresses with ampersands in them. For instance, calling geocode for "Grace St & Mansfield Ave, Toronto, ON, CA" returns a US address, while "Grace St and Mansfield Ave, Toronto, ON, CA" works properly.

This apparently stems from a problem in encoding the ampersand within the URI, within Graticule::Geocode::Base.make_url.

Replacing this:
"#{URI.escape k.to_s}=#{URI.escape v.to_s}"
with this:
"#{CGI.escape k.to_s}=#{CGI.escape v.to_s}"
fixes the problem.

I'm not sure if this breaks encoding assumptions for other geocoders, since I'm not able to easily test them all.

Hope this helps others hitting the same problem.