From 9b156cdd5c886d898006dbca50b4baaad3309181 Mon Sep 17 00:00:00 2001 From: Carla Date: Tue, 23 Jun 2015 17:13:49 +0200 Subject: [PATCH] Update README.md --- geocoder/ip-addresses/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/geocoder/ip-addresses/README.md b/geocoder/ip-addresses/README.md index 95794bd..4cf9c2e 100644 --- a/geocoder/ip-addresses/README.md +++ b/geocoder/ip-addresses/README.md @@ -7,6 +7,22 @@ IP address geocoder SELECT geocode_ip(Array['1.0.16.0', '::ffff:1.0.16.0']) ````` +# Source table structure + +```` + + Table "public.ip_address_locations" + Column | Type | Modifiers | Storage +----------------------+--------------------------+---------------------------------------------------------------------------+--------- + network_start_ip | inet | | main + the_geom | geometry(Geometry,4326) | | main + cartodb_id | integer | not null default nextval('geolite2_city_blocks_cartodb_id_seq'::regclass) | plain + created_at | timestamp with time zone | not null default now() | plain + updated_at | timestamp with time zone | not null default now() | plain + the_geom_webmercator | geometry(Geometry,3857) | | main +```` + + # Creation steps 1. Obtain the file from http://geolite.maxmind.com/download/geoip/database/GeoLite2-City-CSV.zip 2. Uncompress it and upload the `GeoLite2-City-Blocks-IPv4.csv` file