From 4cf104e80c8ec209de2f8ccbe199624338eb9d8d Mon Sep 17 00:00:00 2001 From: Carla Date: Thu, 3 Dec 2015 11:01:41 +0100 Subject: [PATCH 1/3] Fix format --- doc/reference.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/reference.md b/doc/reference.md index 694bd03..361186b 100644 --- a/doc/reference.md +++ b/doc/reference.md @@ -13,7 +13,7 @@ This function provides a country geocoding service. It recognizes the names of t Name | Type | Description --- | --- | --- -`cdb_geocode_admin0_polygon(country_name text)` | `text` | Name of the country +`country_name` | `text` | Name of the country #### Returns @@ -38,7 +38,7 @@ UPDATE {tablename} SET {the_geom} = cdb_geocode_admin0_polygon({country_column}) The following functions provide a geocoding service for administrative regions of level 1 (or NUTS-1) such as states for the United States, regions in France or autonomous communities in Spain. -### cdb_geocode_admin1_polygon(admin1_name text_) +### cdb_geocode_admin1_polygon(_admin1_name text_) #### Arguments @@ -64,7 +64,7 @@ SELECT cdb_geocode_admin1_polygon('Alicante', 'Spain') UPDATE {tablename} SET the_geom = cdb_geocode_admin1_polygon({province_column}, {country_column}) ``` -### cdb_geocode_admin1_polygon(admin1_name text, country_name text_) +### cdb_geocode_admin1_polygon(_admin1_name text, country_name text_) #### Arguments @@ -75,7 +75,7 @@ Name | Type | Description #### Returns -polygon +Geometry (polygon) #### Example @@ -102,7 +102,7 @@ The following functions provide a city geocoder service. It is recommended to us Name | Type | Description --- | --- | --- -`cdb_geocode_namedplace_point(city_name text)` | `text` | Name of the city +`city_name` | `text` | Name of the city #### Returns From 85e95e1e60e80e48c2b7e7d2142cf261852a66f6 Mon Sep 17 00:00:00 2001 From: Carla Date: Thu, 3 Dec 2015 11:24:45 +0100 Subject: [PATCH 2/3] Update reference.md --- doc/reference.md | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/doc/reference.md b/doc/reference.md index 361186b..d3b5a92 100644 --- a/doc/reference.md +++ b/doc/reference.md @@ -21,13 +21,13 @@ Geometry (polygon) #### Example -- **Select** +##### Select ```sql SELECT cdb_geocode_admin0_polygon('France') ``` -- **Update** +##### Update ```sql UPDATE {tablename} SET {the_geom} = cdb_geocode_admin0_polygon({country_column}) @@ -52,13 +52,13 @@ Geometry (polygon) #### Example -- **Select** +##### Select ```sql SELECT cdb_geocode_admin1_polygon('Alicante', 'Spain') ``` -- **Update** +##### Update ```sql UPDATE {tablename} SET the_geom = cdb_geocode_admin1_polygon({province_column}, {country_column}) @@ -79,13 +79,13 @@ Geometry (polygon) #### Example -- **Select** +##### Select ```sql SELECT cdb_geocode_admin1_polygon('Alicante', 'Spain') ``` -- **Update** +##### Update ```sql UPDATE {tablename} SET the_geom = cdb_geocode_admin1_polygon({province_column}, {country_column}) @@ -110,13 +110,13 @@ Geometry (point) #### Example -- **Select** +##### Select ```sql SELECT cdb_geocode_namedplace_point('Barcelona') ``` -- **Update** +##### Update ```sql UPDATE {tablename} SET the_geom = cdb_geocode_namedplace_point({city_column}) @@ -137,13 +137,13 @@ Geometry (point) #### Example -- **Select** +##### Select ```sql SELECT cdb_geocode_namedplace_point('Barcelona', 'Spain') ``` -- **Update** +##### Update ```sql UPDATE {tablename} SET the_geom = cdb_geocode_namedplace_point({city_column}, 'Spain') @@ -165,13 +165,13 @@ Geometry (point) #### Example -- **Select** +##### Select ```sql SELECT cdb_geocode_namedplace_point('New York', 'New York', 'USA') ``` -- **Update** +##### Update ```sql UPDATE {tablename} SET the_geom = cdb_geocode_namedplace_point({city_column}, {province_column}, 'Spain') @@ -196,13 +196,13 @@ Geometry (polygon) #### Example -- **Select** +##### Select ```sql SELECT cdb_geocode_postalcode_polygon('11211', 'USA') ``` -- **Update** +##### Update ```sql UPDATE {tablename} SET the_geom = cdb_geocode_postalcode_polygon({postal_code_column}, 'Spain') @@ -225,13 +225,13 @@ Geometry (point) #### Example -- **Select** +##### Select ```sql SELECT cdb_geocode_postalcode_point('11211', 'USA') ``` -- **Update** +##### Update ```sql UPDATE {tablename} SET the_geom = cdb_geocode_postalcode_point({postal_code_column}, 'United States') @@ -256,13 +256,13 @@ Geometry (point) #### Example -- **Select** +##### Select ```sql SELECT cdb_geocode_ipaddress_point('102.23.34.1') ``` -- **Update** +##### Update ```sql UPDATE {tablename} SET the_geom = cdb_geocode_ipaddress_point('102.23.34.1') From 296ded26d565c5dca40e1d4241eca7c8bfb9322a Mon Sep 17 00:00:00 2001 From: Carla Date: Fri, 4 Dec 2015 14:49:41 +0100 Subject: [PATCH 3/3] Make explicit the projection --- doc/reference.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/reference.md b/doc/reference.md index d3b5a92..59552be 100644 --- a/doc/reference.md +++ b/doc/reference.md @@ -17,7 +17,7 @@ Name | Type | Description #### Returns -Geometry (polygon) +Geometry (polygon, EPSG 4326) or null #### Example @@ -48,7 +48,7 @@ Name | Type | Description #### Returns -Geometry (polygon) +Geometry (polygon, EPSG 4326) or null #### Example @@ -75,7 +75,7 @@ Name | Type | Description #### Returns -Geometry (polygon) +Geometry (polygon, EPSG 4326) or null #### Example @@ -106,7 +106,7 @@ Name | Type | Description #### Returns -Geometry (point) +Geometry (point, EPSG 4326) or null #### Example @@ -133,7 +133,7 @@ Name | Type | Description #### Returns -Geometry (point) +Geometry (point, EPSG 4326) or null #### Example @@ -161,7 +161,7 @@ Name | Type | Description #### Returns -Geometry (point) +Geometry (point, EPSG 4326) or null #### Example @@ -192,7 +192,7 @@ Name | Type | Description #### Returns -Geometry (polygon) +Geometry (polygon, EPSG 4326) or null #### Example @@ -221,7 +221,7 @@ Name | Type | Description #### Returns -Geometry (point) +Geometry (point, EPSG 4326) or null #### Example @@ -252,7 +252,7 @@ Name | Type | Description #### Returns -Geometry (point) +Geometry (point, EPSG 4326) or null #### Example