@@ -24,7 +24,7 @@ All countries points [GeoNames](www.geonames.org) - http://download.geonames.org
|
|||||||
|
|
||||||
# Postal code geocoder (points)
|
# Postal code geocoder (points)
|
||||||
|
|
||||||
1. Download the allCountries.zip file from [GeoNames](www.geonames.org). Import and rename the table as tmp_zipcode_points. You can follow the manual process explained below instead.
|
Download the allCountries.zip file from [GeoNames](www.geonames.org). Import and rename the table as tmp_zipcode_points. You can follow the manual process explained below instead.
|
||||||
|
|
||||||
This dataset includes data for the following countries:
|
This dataset includes data for the following countries:
|
||||||
|
|
||||||
@@ -36,23 +36,26 @@ MH, RO, FO, GF, AD, HR, DZ, GT, AU, AS, BE, AT
|
|||||||
````
|
````
|
||||||
|
|
||||||
The columns that are loaded are the following ones:
|
The columns that are loaded are the following ones:
|
||||||
field_1: corresponding to ISO2
|
|
||||||
field_10: corresponds to latitude
|
|
||||||
field_11: corresponds to longitude
|
|
||||||
field_2: corresponds to ZIP code
|
|
||||||
|
|
||||||
2. Georeference the table using field11 as longitude and field10 as latitude in order to construct the_geom.
|
- field_1: corresponding to ISO2
|
||||||
|
- field_10: corresponds to latitude
|
||||||
|
- field_11: corresponds to longitude
|
||||||
|
- field_2: corresponds to ZIP code
|
||||||
|
|
||||||
3. Add column iso3 (text) and run sql/build_zipcode_points_table.sql.
|
1. Georeference the table using field11 as longitude and field10 as latitude in order to construct the_geom.
|
||||||
|
|
||||||
|
2. Add column iso3 (text) and run sql/build_zipcode_points_table.sql.
|
||||||
|
|
||||||
|
|
||||||
**Alternative manual process**
|
**Alternative manual process**
|
||||||
|
|
||||||
Open the allCountries.txt file with Excel an add a new row on top. Delete columns C-I and L.
|
1. Open the allCountries.txt file with Excel an add a new row on top.
|
||||||
|
|
||||||
In the first row, add the following columns: iso2, zipcode, lat, long.
|
2. Delete columns C-I and L.
|
||||||
|
|
||||||
Import the file ignoring step 2.
|
3. In the first row, add the following columns: iso2, zipcode, lat, long.
|
||||||
|
|
||||||
|
4. Import the file ignoring step 1.
|
||||||
|
|
||||||
_The big size of the dataset may cause interruptions in the processing of the coordinates after uploading the file, manipulating the file before importing is a faster workaround._
|
_The big size of the dataset may cause interruptions in the processing of the coordinates after uploading the file, manipulating the file before importing is a faster workaround._
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user