Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

readme

  • Loading branch information...
commit 9a0b8c674ef18e938762e7e0e3bf3b9c9ba984e3 1 parent ac926f0
@nofxx authored
Showing with 10 additions and 24 deletions.
  1. +10 −24 README.rdoc
View
34 README.rdoc
@@ -10,7 +10,7 @@ No hit limit, fast as possible.
To use one adapter, install the corresponding gem:
PostgreSQL => pg
- MongoDB => mongo (optional: mongo_ext)
+ MongoDB => mongoid (optional: mongo_ext)
Tokyo => tokyocabinet
You will also need in your system:
@@ -19,17 +19,6 @@ You will also need in your system:
* curl
-=== PostgreSQL
-
-Be sure to use a database based on the PostGIS template.
-
-
-=== MongoDB
-
-MongoDB 2D support is new, only mongo >= 1.3.3 mongodb gem >= 0.19.2
-http://github.com/mongodb/mongo-ruby-driver
-
-
=== Config YML
geonames conf
@@ -45,26 +34,23 @@ If you are not sure your country code, use:
geonames list <search>
+To populate the countries database for the first time use:
-== Relational Mapping
+ geonames -c geoconfig.yml countries
-When using PG, this gem will (try) to relational map Geonames
-data on your scheme.
-== ActiveRecord
+== Mongoid
-Check out lib/geonames/models/ar.rb
-
-I`m wondering the best way (and if it`s a good idea) to auto include'em on rails.
-For now, just copy as you see fit.
+So, supposing Mongoid, something like this is possible:
+ City.first.province.country.abbr
+ => "BR"
-== PostgreSQL
-So, supposing ActiveRecord, something like this is possible:
+== Postgis
- City.first.province.country.abbr
- => "BR"
+TBD (by someone else)
+Be sure to use a database based on the PostGIS template.
=== Migration

0 comments on commit 9a0b8c6

Please sign in to comment.
Something went wrong with that request. Please try again.