Update README.md

This commit is contained in:
Carla
2015-06-24 16:27:23 +02:00
parent 37a34c81a3
commit 5d54bf884e
+33 -3
View File
@@ -7,9 +7,11 @@ Named places geocoder
SELECT (geocode_namedplace(Array['sunapee', 'sunapeeee', 'New York City'], 'USA')).* SELECT (geocode_namedplace(Array['sunapee', 'sunapeeee', 'New York City'], 'USA')).*
````` `````
# Source table structure # Tables
**global_cities_points_limited** ### global_cities_points_limited**
#### Table structure
```` ````
Table "public.global_cities_points_limited" Table "public.global_cities_points_limited"
Column | Type | Modifiers | Storage | Stats target | Description Column | Type | Modifiers | Storage | Stats target | Description
@@ -37,7 +39,21 @@ SELECT (geocode_namedplace(Array['sunapee', 'sunapeeee', 'New York City'], 'USA'
```` ````
**global_cities_alternates_limited** #### Current indexes
````
Indexes:
"points_cities_le_pkey" PRIMARY KEY, btree (cartodb_id)
"points_cities_le_cartodb_id_key" UNIQUE CONSTRAINT, btree (cartodb_id)
"idx_global_cities_points_lim_a" btree (lowername, iso2)
"idx_global_cities_points_lim_admin1" btree (admin1)
"idx_global_cities_points_lim_geoname_id" btree (geoname_id)
"points_cities_le_the_geom_idx" gist (the_geom)
"points_cities_le_the_geom_webmercator_idx" gist (the_geom_webmercator)
````
### global_cities_alternates_limited**
#### Table structure
```` ````
Table "public.global_cities_alternates_limited" Table "public.global_cities_alternates_limited"
Column | Type | Modifiers | Storage | Stats target | Description Column | Type | Modifiers | Storage | Stats target | Description
@@ -57,6 +73,19 @@ SELECT (geocode_namedplace(Array['sunapee', 'sunapeeee', 'New York City'], 'USA'
```` ````
#### Current indexes
````
Indexes:
"global_cities_alternates_limited_pkey" PRIMARY KEY, btree (cartodb_id)
"global_cities_alternates_limited_the_geom_idx" gist (the_geom)
"global_cities_alternates_limited_the_geom_webmercator_idx" gist (the_geom_webmercator)
"idx_global_cities_alternates_limited_admin1" btree (admin1)
"idx_global_cities_alternates_limited_admin1_geonameid" btree (admin1_geonameid)
"idx_global_cities_alternates_limited_lowername" btree (lowername)
`````
# Creation steps # Creation steps
1. Upload the allCountries and alternateNames tables 1. Upload the allCountries and alternateNames tables
2. Generate the `global_cities_points_limited` and `global_cities_alternates_limited` tables 2. Generate the `global_cities_points_limited` and `global_cities_alternates_limited` tables
@@ -74,6 +103,7 @@ In order to test the data and the functions created under the script avaialble i
# Known issues # Known issues
* Admin1 column with null rows doesn't return a result: https://github.com/CartoDB/data-services/issues/147 * Admin1 column with null rows doesn't return a result: https://github.com/CartoDB/data-services/issues/147
* The geocoding function is using a deprecated table: `admin1_decoder` instead of the new `admin1_synonyms`. Related issue: https://github.com/CartoDB/data-services/issues/148 * The geocoding function is using a deprecated table: `admin1_decoder` instead of the new `admin1_synonyms`. Related issue: https://github.com/CartoDB/data-services/issues/148
* The name of the countries added in a column are not being sanitized https://github.com/CartoDB/cartodb/issues/3392
# Historic: # Historic:
* [24/06/2015]: * [24/06/2015]: