@ip-location-db/dbip-city
Advanced tools
Comparing version 2.2.2020100200 to 2.2.2020110218
{ | ||
"name": "@ip-location-db/dbip-city", | ||
"version": "2.2.2020100200", | ||
"version": "2.2.2020110218", | ||
"description": "Ip to location database", | ||
@@ -15,3 +15,3 @@ "keywords": [ | ||
], | ||
"license": "CC-BY-4.0", | ||
"license": "SEE LICENSE IN DBIP-LICENSE (CC-BY-4.0)", | ||
"author": "sapics", | ||
@@ -18,0 +18,0 @@ "publishConfig": { |
@@ -16,9 +16,28 @@ # ip-location-db | ||
## CSV format | ||
This project provides ip to location database in csv.<br> | ||
Country csv format: `ip_range_start, ip_range_end, country_code`<br> | ||
City csv format: `ip_range_start, ip_range_end, country_code, state1, state2, city, postcode, latitude, longitude, timezone`<br> | ||
This project provides ip to location database in csv format. | ||
#### Country csv format | ||
`ip_range_start, ip_range_end, country_code` | ||
#### City csv format | ||
`ip_range_start, ip_range_end, country_code, state1, state2, city, postcode, latitude, longitude, timezone` | ||
##### country_code | ||
`country_code` is the two-letter code defined in [ISO 3166-1 alpha-2](https://wikipedia.org/wiki/ISO_3166-1_alpha-2). | ||
You can get the `country name, capital, continent, currency, languages, etc.` from the `country_code` by [Countries Database](https://github.com/annexare/Countries) in JSON, CSV, SQL format. | ||
##### ip address format | ||
`ip_range_start` and `ip_range_end` is ip address. | ||
- `ipv4`: The csv line `1.0.0.0,1.0.0.255,AU` means that ip addresses between `1.0.0.0` and `1.0.0.255` inclusive are `AU` country_code. | ||
- `ipv4-num`: The csv line `16777216,16777471,AU` means that ip addresses between `1.0.0.0` and `1.0.0.255` inclusive are `AU` country_code. (`16777216` is the number format of the ip address `1.0.0.0`) | ||
- `ipv6`: The csv line `2001:200::,2001:200:ffff:ffff:ffff:ffff:ffff:ffff,JP` means that ip addresses between `2001:200::` and `2001:200:ffff:ffff:ffff:ffff:ffff:ffff` inclusive are `JP` country_code. | ||
- `ipv6-num`: The csv line `42540528726795050063891204319802818560,42540528806023212578155541913346768895,JP` means that ip addresses between `2001:200::` and `2001:200:ffff:ffff:ffff:ffff:ffff:ffff` inclusive are `JP` country_code. (`42540528726795050063891204319802818560` is the number format of the ip address `2001:200::`) | ||
Please be careful when using `ipv6` and `ipv6-num` in your program. The numerical value exceeds 32bit unsigned integer, so you need to use 64bit unsigned integer. | ||
## Databases referenced in this project | ||
When merging multiple database, set the front database above back one. | ||
@@ -28,3 +47,2 @@ (ex. geo-whois-asn-...csv is created by merging 3 database with GeoFeed > Whois > ASN.) | ||
### ASN database [Update: Daily] | ||
@@ -105,2 +123,3 @@ | ||
You can use [PDDL](https://opendatacommons.org/licenses/pddl/1.0/) (ODC Public Domain Dedication and Licence) or [CC0](https://creativecommons.org/publicdomain/zero/1.0/deed) (Creative Commons Zero) licensed database without attribution for any purpose. | ||
We are glad if you make a link to [sapics/ip-location-db](https://github.com/sapics/ip-location-db). | ||
We are glad if you make a link to [sapics/ip-location-db](https://github.com/sapics/ip-location-db), or give us a star to [the github repository](https://github.com/sapics/ip-location-db). |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found
Found 1 instance in 1 package
1
100
123
160351519