Skip to content

Graticule is a geocoding API for looking up address coordinates and performing distance calculations, supporting many popular APIs.

License

Notifications You must be signed in to change notification settings

woodhull/graticule

This branch is 1 commit ahead of, 182 commits behind collectiveidea/graticule:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4fd3e97 · Feb 12, 2009

History

60 Commits
Mar 12, 2007
Feb 12, 2009
Nov 24, 2008
Jan 29, 2009
Aug 3, 2008
Oct 4, 2008
Dec 16, 2006
Jan 8, 2009
Nov 24, 2008
Apr 25, 2007
Dec 16, 2006

Repository files navigation

= Graticule

Graticule is a geocoding API for looking up address coordinates.  It supports many popular APIs, including Yahoo, Google, Geocoder.ca, Geocoder.us, PostcodeAnywhere and MetaCarta.

= Usage

  require 'rubygems'
  require 'graticule'
  geocoder = Graticule.service(:google).new "api_key"
  location = geocoder.locate "61 East 9th Street, Holland, MI"

= Distance Calculation

Graticule includes 3 different distance formulas, Spherical (simplest but least accurate), Vincenty (most accurate and most complicated), and Haversine (somewhere inbetween).

  geocoder.locate("Holland, MI").distance_to(geocoder.locate("Chicago, IL"))
  #=> 101.997458788177
  
= Command Line

Graticule includes a command line interface (CLI).

  $ geocode -s yahoo -a yahookey Washington, DC
  Washington, DC US
  latitude: 38.895222, longitude: -77.036758

= Source

The source code for Graticule is available at http://github.com/collectiveidea/graticule. Patches and bug reports are welcome at http://collectiveidea.lighthouseapp.com/projects/20262-graticule

About

Graticule is a geocoding API for looking up address coordinates and performing distance calculations, supporting many popular APIs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%