Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

pumped version v0.2.0

  • Loading branch information...
commit 785c4c9a0c95cc6783dcb2f7b54c65a25d954354 1 parent 429e470
kuno authored
14 README.md
Source Rendered
@@ -36,6 +36,14 @@ Get geolocation information based on domain or IP address.
36 36
37 37 2, Hidden some unsafe an useless funcions.
38 38
  39 +####v0.2.0, 2010-12-09:
  40 +
  41 +1, added org, region, netspeed submodule.
  42 +
  43 +2, added data type check in every submodule
  44 +
  45 +3, re-factoring whloe project.
  46 +
39 47 ###Data
40 48
41 49 Befor you can use this package, you need to download or buy some data from [www.maxmind.com](http://www.maxmind.com/app/ip-location).
@@ -79,6 +87,7 @@ GeoIP City Lite Edition [Download](http://geolite.maxmind.com/download/geoip/dat
79 87 });
80 88
81 89 * Close the opened file.
  90 +
82 91 geoip.close(data);
83 92
84 93 ####City Information
@@ -109,6 +118,7 @@ GeoIP City Lite Edition [Download](http://geolite.maxmind.com/download/geoip/dat
109 118 ####Organization Information
110 119
111 120 * Open the GeoIPOrg.dat first.
  121 +
112 122 var org_data = geoip.open('/path/to/GeoIPOrg.dat');
113 123
114 124 geoip.Org.org_by_addr(data, '8.8.8.8');
@@ -125,6 +135,7 @@ GeoIP City Lite Edition [Download](http://geolite.maxmind.com/download/geoip/dat
125 135 ####Region Information
126 136
127 137 * Open the GeoIPRegion.dat first.
  138 +
128 139 var region_data = geoip.open('/path/to/GeoIPRegion.dat');
129 140
130 141 geoip.Region.region_by_addr(region_data, '8.8.8.8'); // prints 'US,CO'
@@ -134,7 +145,8 @@ GeoIP City Lite Edition [Download](http://geolite.maxmind.com/download/geoip/dat
134 145
135 146 ####NetSpeed Information
136 147
137   -* Open the GeoIPNetSpeed.dat first
  148 +* Open the GeoIPNetSpeed.dat first.
  149 +
138 150 var netspeed_data = geoip.open('/path/go/GeoIPNetSpeed.dat');
139 151
140 152 geoip.NetSpeed.speed_by_addr(netspeed_data, '8.8.8.8'); // prints 'Dailup'
BIN  misc/architecture.png
2  package.json
... ... @@ -1,7 +1,7 @@
1 1 {
2 2 "name":"geoip",
3 3 "description":"GeoIP client for node",
4   - "version":"0.1.10",
  4 + "version":"0.2.0",
5 5 "homepage":"",
6 6 "author":"Guan 'kuno' Qing <neokuno at Gmail dot com>",
7 7 "contributors":

0 comments on commit 785c4c9

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