README.md in geocoder-1.2.2 vs README.md in geocoder-1.2.3
- old
+ new
@@ -304,12 +304,18 @@
Geocoding Service ("Lookup") Configuration
------------------------------------------
-Geocoder supports a variety of street and IP address geocoding services. The default lookups are `:google` for street addresses and `:freegeoip` for IP addresses. Please see the listing and comparison below for details on specific geocoding services (not all settings are supported by all services). Some common configuration options are:
+Geocoder supports a variety of street and IP address geocoding services. The default lookups are `:google` for street addresses and `:freegeoip` for IP addresses. Please see the listing and comparison below for details on specific geocoding services (not all settings are supported by all services).
+To create a Rails initializer with an example configuration:
+
+ rails generate geocoder:config
+
+Some common configuration options are:
+
# config/initializers/geocoder.rb
Geocoder.configure(
# geocoding service (see below for supported options):
:lookup => :yandex,
@@ -574,12 +580,23 @@
* **SSL support**: no
* **Languages**: English
* **Documentation**: http://github.com/fiorix/freegeoip/blob/master/README.md
* **Terms of Service**: ?
* **Limitations**: ?
-* **Notes**: If you are running your own local instance of the FreeGeoIP service you can configure the host like this: `Geocoder.configure(freegeoip: {host: "..."})`.
+* **Notes**: If you are [running your own local instance of the FreeGeoIP service](https://github.com/fiorix/freegeoip) you can configure the host like this: `Geocoder.configure(freegeoip: {host: "..."})`.
+#### Telize (`:telize`)
+
+* **API key**: none
+* **Quota**: none
+* **Region**: world
+* **SSL support**: no
+* **Languages**: English
+* **Documentation**: http://www.telize.com/
+* **Terms of Service**: ?
+* **Limitations**: ?
+
#### MaxMind Web Services (`:maxmind`)
* **API key**: required
* **Quota**: Request Packs can be purchased
* **Region**: world
@@ -612,15 +629,15 @@
Geocoder.configure(ip_lookup: :maxmind_local, maxmind_local: {package: :city})
You can generate ActiveRecord migrations and download and import data via provided rake tasks:
- rails generate geocoder:maxmind:geolite_city
+ rails generate geocoder:maxmind:geolite PACKAGE=city
- rake geocoder:maxmind:geolite_city:download
- rake geocoder:maxmind:geolite_city:extract
- rake geocoder:maxmind:geolite_city:insert
- rake geocoder:maxmind:geolite_city:load # runs the above three in sequence
+ rake geocoder:maxmind:geolite:download PACKAGE=city
+ rake geocoder:maxmind:geolite:extract PACKAGE=city
+ rake geocoder:maxmind:geolite:insert PACKAGE=city
+ rake geocoder:maxmind:geolite:load PACKAGE=city # runs the above three in sequence
You can replace `city` with `country` in any of the above tasks, generators, and configurations.
#### Baidu IP (`:baidu_ip`)