public
Description: Graticule is a geocoding API for looking up address coordinates and performing distance calculations, supporting many popular APIs.
Homepage: http://graticule.rubyforge.org/
Clone URL: git://github.com/collectiveidea/graticule.git
Click here to lend your support to: graticule and make a donation at www.pledgie.com !
brandon (author)
Fri Sep 25 14:51:32 -0700 2009
commit  329d78c0305266c33ab6e3b8a2fa475610ea2a1c
tree    3d167a548b65dce69f80c4856dcceb7b4c7906e7
parent  cffd0837652a7f5aa9c59975b3346e6a26c8b127
graticule / README.txt
100644 42 lines (27 sloc) 1.46 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
= 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
 
= 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.