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 9ed97db5969bb3dc5e69589ef02858e606f33c63
tree 6f17c802356d6cd7b3fe0b82cec19d8cec98b4b8
parent eaa54755fa450cf4d75e512d6544cb7c49e1b1c3
tree 6f17c802356d6cd7b3fe0b82cec19d8cec98b4b8
parent eaa54755fa450cf4d75e512d6544cb7c49e1b1c3
| name | age | message | |
|---|---|---|---|
| |
.autotest | ||
| |
.gitignore | ||
| |
CHANGELOG.txt | Mon Sep 21 15:23:31 -0700 2009 | |
| |
LICENSE.txt | Sat Dec 16 08:01:49 -0800 2006 | |
| |
README.txt | ||
| |
Rakefile | ||
| |
VERSION | ||
| |
bin/ | Mon Mar 12 10:54:30 -0700 2007 | |
| |
graticule.gemspec | Sun Sep 06 07:55:44 -0700 2009 | |
| |
init.rb | Fri Dec 15 20:35:27 -0800 2006 | |
| |
lib/ | ||
| |
site/ | Sun Nov 23 16:02:34 -0800 2008 | |
| |
test/ |
README.txt
= Graticule
Graticule is a geocoding API for looking up address coordinates. It supports many popular APIs, including Yahoo,
Google, Geocoder.ca and Geocoder.us.
= 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
= Mailing List
Join us on the mailing list at http://groups.google.com/group/graticule
= How to contribute
If you find what you might think is a bug:
1. Check the GitHub issue tracker to see if anyone else has had the same issue.
http://github.com/collectiveidea/graticule/issues/
2. If you don't see anything, create an issue with information on how to reproduce it.
If you want to contribute an enhancement or a fix:
1. Fork the project on github.
http://github.com/collectiveidea/graticule/
2. Make your changes with tests.
3. Commit the changes without making changes to the Rakefile, VERSION, or any other files that aren't related to your
enhancement or fix
4. Send a pull request.









