From c5c459409db3163cd2d4670506c3c7575ae9af22 Mon Sep 17 00:00:00 2001 From: Alex Reisner <alex@alexreisner.com> Date: Thu, 20 Mar 2014 22:32:12 -0400 Subject: [PATCH] Clarify required configuration for :maxmind_local. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 99af0a69..1827dd5a 100644 --- a/README.md +++ b/README.md @@ -597,7 +597,9 @@ This lookup provides methods for geocoding IP addresses without making a call to * **Documentation**: http://www.maxmind.com/en/city * **Terms of Service**: ? * **Limitations**: ? -* **Notes**: There are two supported formats for MaxMind local data: binary file, and CSV file imported into an SQL database. **To use a binary file** you must add the *geoip* (or *jgeoip* for JRuby) gem to your Gemfile or have it installed in your system, and specify the path of the MaxMind database in your configuration. For example: +* **Notes**: There are two supported formats for MaxMind local data: binary file, and CSV file imported into an SQL database. **You must download a database from MaxMind and set either the `:file` or `:package` configuration option for local lookups to work.** + +**To use a binary file** you must add the *geoip* (or *jgeoip* for JRuby) gem to your Gemfile or have it installed in your system, and specify the path of the MaxMind database in your configuration. For example: Geocoder.configure(ip_lookup: :maxmind_local, maxmind_local: {file: File.join('folder', 'GeoLiteCity.dat')}) -- GitLab