Skip to content

Commit

Permalink
Merge pull request #119 from jonnyandrew/patch-1
Browse files Browse the repository at this point in the history
Move important information to top of readme
  • Loading branch information
Michael Noack committed Jul 22, 2017
2 parents 2a5dc8b + 9d6f412 commit 23ffa4a
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions README.markdown
Expand Up @@ -32,8 +32,15 @@ Then tell bundler to update the gems :
```sh
$ bundle install
```
Generate the configuration initializer:

```sh
$ rails g geokit_rails:install
```

Now, if you wish to use the various geocoding services, you can add your keys to the new initializer.


Last, consult the `important post-installation notes` section at the end of this document.

If you want to use geokit-rails in a Rails 2 application, just use the good old plugin ([geokit-rails](https://github.com/andre/geokit-rails)).

Expand Down Expand Up @@ -711,11 +718,3 @@ GeoLoc represents an address or location which
has been geocoded. You can get the city, zipcode, street address, etc.
from a GeoLoc object. GeoLoc extends LatLng, so you also get lat/lng
AND the Mappable module goodness for free.

## IMPORTANT POST-INSTALLATION NOTES:

*1. The configuration file*: Geokit for Rails uses a configuration file in config/initializers.
You *must* add your own keys for the various geocoding services if you want to use geocoding. You can generate a sample initializer file by run:
```sh
$ rails g geokit_rails:install
```

0 comments on commit 23ffa4a

Please sign in to comment.