README.md in geocoder-1.5.0 vs README.md in geocoder-1.5.1
- old
+ new
@@ -11,11 +11,11 @@
Key features:
* Forward and reverse geocoding, and IP address geocoding.
* Connects to more than 40 APIs worldwide.
-* Performance-enhancing feaures like caching.
+* Performance-enhancing features like caching.
* Advanced configuration allows different parameters and APIs to be used in different conditions.
* Integrates with ActiveRecord and Mongoid.
* Basic geospatial queries: search within radius (or rectangle, or ring).
Compatibility:
@@ -43,11 +43,11 @@
* [Advanced Model Configuration](#advanced-model-configuration)
* [Advanced Database Queries](#advanced-database-queries)
* [Geospatial Calculations](#geospatial-calculations)
* [Batch Geocoding](#batch-geocoding)
* [Testing](#testing)
-* [Error Handling](#error-handing)
+* [Error Handling](#error-handling)
* [Command Line Interface](#command-line-interface)
The Rest:
* [Technical Discussions](#technical-discussions)
@@ -222,19 +222,19 @@
)
Please see [`lib/geocoder/configuration.rb`](https://github.com/alexreisner/geocoder/blob/master/lib/geocoder/configuration.rb) for a complete list of configuration options. Additionally, some lookups have their own special configuration options which are directly supported by Geocoder. For example, to specify a value for Google's `bounds` parameter:
# with Google:
- Geocoder.search("Paris", bounds: [[32.1,-95.9], [33.9,-94.3]])
+ Geocoder.search("Middletown", bounds: [[40.6,-77.9], [39.9,-75.9]])
Please see the [source code for each lookup](https://github.com/alexreisner/geocoder/tree/master/lib/geocoder/lookups) to learn about directly supported parameters. Parameters which are not directly supported can be specified using the `:params` option, which appends options to the query string of the geocoding request. For example:
# Nominatim's `countrycodes` parameter:
- Geocoder.search("Paris", params: {countrycodes: "gb,de,fr,es,us"})
+ Geocoder.search("Rome", params: {countrycodes: "us,ca"})
# Google's `region` parameter:
- Geocoder.search("Paris", params: {region: "..."})
+ Geocoder.search("Rome", params: {region: "..."})
### Configuring Multiple Services
You can configure multiple geocoding services at once by using the service's name as a key for a sub-configuration hash, like this:
@@ -498,12 +498,12 @@
Testing
-------
-When writing tests for an app that uses Geocoder it may be useful to avoid network calls and have Geocoder return consistent, configurable results. To do this, configure the `:test` lookup:
+When writing tests for an app that uses Geocoder it may be useful to avoid network calls and have Geocoder return consistent, configurable results. To do this, configure the `:test` lookup and/or `:ip_lookup`
- Geocoder.configure(lookup: :test)
+ Geocoder.configure(lookup: :test, ip_lookup: :test)
Add stubs to define the results that will be returned:
Geocoder::Lookup::Test.add_stub(
"New York, NY", [