Skip to content
Browse files

No commit message

  • Loading branch information...
1 parent 13ab6b5 commit 12be096fd83f9e7fa3c940ec06668d5273eea813 christocracy committed
Showing with 19 additions and 19 deletions.
  1. +19 −19 lib/geonames.rb
View
38 lib/geonames.rb
@@ -77,25 +77,25 @@ def self.import_countries
# import_regions
# The main 'geoname' table has the following fields :
# ---------------------------------------------------------------------------------------
- # geonameid : integer id of record in geonames database
- # name : name of geographical point (utf8) varchar(200)
- # asciiname : name of geographical point in plain ascii characters, varchar(200)
- # alternatenames : alternatenames, comma separated varchar(4000)
- # latitude : latitude in decimal degrees (wgs84)
- # longitude : longitude in decimal degrees (wgs84)
- # feature class : see http://www.geonames.org/export/codes.html, char(1)
- # feature code : see http://www.geonames.org/export/codes.html, varchar(10)
- # country code : ISO-3166 2-letter country code, 2 characters
- # cc2 : alternate country codes, comma separated, ISO-3166 2-letter country code, 60 characters
- # admin1 code : fipscode (subject to change to iso code), isocode for the us and ch, see file admin1Codes.txt for display names of this code; varchar(20)
- # admin2 code : code for the second administrative division, a county in the US, see file admin2Codes.txt; varchar(80)
- # admin3 code : code for third level administrative division, varchar(20)
- # admin4 code : code for fourth level administrative division, varchar(20)
- # population : integer
- # elevation : in meters, integer
- # gtopo30 : average elevation of 30'x30' (ca 900mx900m) area in meters, integer
- # timezone : the timezone id (see file timeZone.txt)
- # modification date : date of last modification in yyyy-MM-dd format
+ # [0] geonameid : integer id of record in geonames database
+ # [1] name : name of geographical point (utf8) varchar(200)
+ # [2] asciiname : name of geographical point in plain ascii characters, varchar(200)
+ # [3] alternatenames : alternatenames, comma separated varchar(4000)
+ # [4] latitude : latitude in decimal degrees (wgs84)
+ # [5] longitude : longitude in decimal degrees (wgs84)
+ # [6] feature class : see http://www.geonames.org/export/codes.html, char(1)
+ # [7] feature code : see http://www.geonames.org/export/codes.html, varchar(10)
+ # [8] country code : ISO-3166 2-letter country code, 2 characters
+ # [9] cc2 : alternate country codes, comma separated, ISO-3166 2-letter country code, 60 characters
+ # [10] admin1 code : fipscode (subject to change to iso code), isocode for the us and ch, see file admin1Codes.txt for display names of this code; varchar(20)
+ # [11] admin2 code : code for the second administrative division, a county in the US, see file admin2Codes.txt; varchar(80)
+ # [12] admin3 code : code for third level administrative division, varchar(20)
+ # [13] admin4 code : code for fourth level administrative division, varchar(20)
+ # [14] population : integer
+ # [15] elevation : in meters, integer
+ # [16] gtopo30 : average elevation of 30'x30' (ca 900mx900m) area in meters, integer
+ # [17] timezone : the timezone id (see file timeZone.txt)
+ # [18] modification date : date of last modification in yyyy-MM-dd format
def self.import_regions

0 comments on commit 12be096

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