This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 558f7e47b9d638107770e14ab3bef393881ae034
tree 0547bd7cf1fd41965488e7eb39d30b061acd4d22
parent ddeddcbbee3d826fceeafda0f152950265c45fce
tree 0547bd7cf1fd41965488e7eb39d30b061acd4d22
parent ddeddcbbee3d826fceeafda0f152950265c45fce
| name | age | message | |
|---|---|---|---|
| |
CHANGELOG.txt | ||
| |
LICENSE.txt | Sat Dec 16 08:01:49 -0800 2006 | |
| |
Manifest.txt | ||
| |
README.txt | ||
| |
Rakefile | ||
| |
bin/ | ||
| |
init.rb | ||
| |
lib/ | ||
| |
site/ | ||
| |
test/ |
README.txt
= 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://source.collectiveidea.com/public/geocode/trunk








