This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| loc1_name = 'Chicago' # => "Chicago" | |
| loc2_name = 'Houston' # => "Houston" | |
| # Get the lib with `gem install geocoder` | |
| # it ultimately calls out to this API: http://maps.googleapis.com/maps/api/geocode/json?address=Chicago&language=en&sensor=false | |
| require 'geocoder' # => true | |
| include Math # => Object | |
| def radians(n) | |
| n * PI / 180 # => 0.7309109668442155, -1.5294285014482003, 0.5194174327134308, -1.664517065837707 |