Per-release changes to Geocoder.
-
Fix error with ‘rake assets:precompile` (thanks github.com/Sush).
-
Fix HTTPS support (thanks github.com/rsanheim).
-
Improve cache interface.
-
Remove klass method from rake task, which could conflict with app methods (thanks github.com/mguterl).
-
Add support for Google Premier geocoding service (thanks github.com/steveh).
-
Update Google API URL (thanks github.com/soorajb).
-
Allow rescue from timeout with FreeGeoIP (thanks github.com/lukeledet).
-
Fix: rake assets:precompile (Rails 3.1) not working in some situations.
-
Fix: stop double-adjusting units when using kilometers (thanks github.com/hairyheron).
-
Add support for MongoMapper (thanks github.com/spagalloco).
-
Fix: user-specified coordinates field wasn’t working with Mongoid (thanks github.com/thisduck).
-
Fix: invalid location given to near scope was returning all results (Active Record) or error (Mongoid) (thanks github.com/ogennadi).
-
Add option to not rescue from certain exceptions (thanks github.com/ahmedrb).
-
Fix STI child/parent geocoding bug (thanks github.com/ogennadi).
-
Other bugfixes.
-
Add command line interface.
-
Add support for local proxy (thanks github.com/Olivier).
-
Add support for Yandex.ru geocoding service.
-
Add support for Bing geocoding service (thanks github.com/astevens).
-
Fix single table inheritance bug (reported by github.com/enrico).
-
Fix bug when Google result supplies no city (thanks github.com/jkeen).
-
Fix “can’t find special index: 2d” error when using Mongoid with Ruby 1.8.
-
Add support for Mongoid.
-
Add bearing_to/from methods to geocoded objects.
-
Improve SQLite’s distance calculation heuristic.
-
Fix: Geocoder::Calculations.geographic_center was modifying its argument in-place (reported by github.com/joelmats).
-
Fix: sort ‘near’ query results by distance when using SQLite.
-
Clean up input: search for coordinates as a string with space after comma yields zero results from Google. Now we get rid of any such space before sending the query.
-
DEPRECATION: Geocoder.near should not take
:limit
or:offset
options. -
DEPRECATION: Change argument format of all methods that take lat/lon as separate arguments. Now you must pass the coordinates as an array [lat,lon], but you may alternatively pass a address string (will look up coordinates) or a geocoded object (or any object that implements a to_coordinates method which returns a [lat,lon] array).
-
Add support for result caching.
-
Add support for Geocoder.ca geocoding service.
-
Add
bearing
attribute to objects returned by geo-aware queries (thanks github.com/matellis). -
Add config setting: language.
-
Add config settings:
use_https
,google_api_key
(thanks github.com/svesely). -
DEPRECATION:
Geocoder.search
now returns an array instead of a single result. -
DEPRECATION:
obj.nearbys
second argument is now an options hash (instead of units). Please changeobj.nearbys(20, :km)
to:obj.nearbys(20, :units => :km)
.
-
Fix broken scopes (github.com/mikepinde).
-
Fix broken Ruby 1.9 and JRuby compatibility (don’t require json gem).
-
Add support for IP address geocoding via FreeGeoIp.net.
-
Add support for Yahoo PlaceFinder geocoding API.
-
Add support for custom geocoder data handling by passing a block to geocoded_by or reverse_geocoded_by.
-
Add
Rack::Request#location
method for geocoding user’s IP address. -
Change gem name to geocoder (no more rails-geocoder).
-
Gem now works outside of Rails.
-
DEPRECATION:
fetch_coordinates
no longer takes an argument. -
DEPRECATION:
fetch_address
no longer takes an argument. -
DEPRECATION:
Geocoder.search
now returns a single result instead of an array. -
DEPRECATION:
fetch_coordinates!
has been superceded bygeocode
(then save your object manually). -
DEPRECATION:
fetch_address!
has been superceded byreverse_geocode
(then save your object manually). -
Fix: don’t die when trying to get coordinates with a nil address (github.com/zmack).
-
Include
geocode:all
Rake task in gem (was missing!). -
Add
Geocoder.search
for access to Google’s full response. -
Add ability to configure Google connection timeout.
-
Emit warnings on Google connection problems and errors.
-
Refactor: insert Geocoder into ActiveRecord via Railtie.
-
Add reverse geocoding (
reverse_geocoded_by
). -
Prevent exception (uninitialized constant Geocoder::Net) when net/http not already required (github.com/sleepycat).
-
Refactor: split monolithic Geocoder module into several smaller ones.
-
Fix incompatibility with will_paginate gem.
-
Include table names in GROUP BY clause of nearby scope to avoid ambiguity in joins (github.com/matchu).
-
Fix broken PostgreSQL compatibility (now 100% compatible).
-
Switch from Google’s XML to JSON geocoding API.
-
Separate Rails 2 and Rails 3-compatible branches.
-
Don’t allow :conditions hash in ‘options’ argument to ‘nearbys’ method (was deprecated in 0.9.3).
-
Google Maps API key no longer required (uses geocoder v3).
-
Fix incompatibility with Rails 3 RC 1.
-
Deprecate ‘options’ argument to ‘nearbys’ method.
-
Allow inclusion of ‘nearbys’ in Arel method chains.
-
Fix LIMIT clause bug in PostgreSQL (reported by github.com/kenzie).
-
Use scope instead of named_scope in Rails 3.
-
Fix bug in PostgreSQL support (caused “PGError: ERROR: column ”distance“ does not exist”), reported by github.com/developish.
-
Add Rails 3 compatibility.
-
Avoid querying Google when query would be an empty string.
-
Automatically select a less accurate but compatible distance algorithm when SQLite database detected (fixes SQLite incompatibility).
-
Added Geocoder.geographic_center method.
-
Replaced _get_coordinates class method with read_coordinates instance method.
-
The fetch_coordinates method now assigns coordinates to attributes (behaves like fetch_coordinates! used to) and fetch_coordinates! both assigns and saves the attributes.
-
Added geocode:all rake task.
-
Avoid calling deprecated method from within Geocoder itself.
-
Deprecate
find_near
class method in favor ofnear
named scope.
-
Update Google URL query string parameter to reflect recent changes in Google’s API.
-
Allow a model’s geocoder search string method to be something other than an ActiveRecord attribute.
-
Clean up documentation.
-
Extract XML-fetching code from
Geocoder.search
and place in Geocoder._fetch_xml (for ease of mocking). -
Add tests for coordinate-fetching instance methods.
First release.