Alex Reisner
authored
Avoid crashes during calculations. Geocoder.coordinates sometimes returns nil which causes crashes in the distance and bearing calculations. By returning a point array of [ NaN, NaN ] this distances will be also NaN which seems to be a sensible result. If the argument to extract_coordinates has an unexpected form, also return [ NaN, NaN ].
Name | Last commit | Last update |
---|---|---|
bin | ||
lib | ||
test | ||
.gitignore | ||
CHANGELOG.rdoc | ||
Gemfile | ||
LICENSE | ||
README.rdoc | ||
Rakefile | ||
geocoder.gemspec | ||
init.rb |