diff --git a/src/Provider/IP2Location/README.md b/src/Provider/IP2Location/README.md index 037482b6c..f3b960272 100644 --- a/src/Provider/IP2Location/README.md +++ b/src/Provider/IP2Location/README.md @@ -18,7 +18,7 @@ composer require geocoder-php/ip2location-provider ### Note -This provider requires IP2Location™ [IP Geolocation Web Service](https://www.ip2location.com/web-service/ip2location) subscription. It is a paid solution with high accuracy. For free solution, please use our free [IpInfoDB](https://github.com/geocoder-php/Geocoder#ip) project. Ipinfodb is using [IP2Location LITE](https://lite.ip2location.com/) database which has less accuracy at city level. +This provider requires IP2Location™ [IP Geolocation Web Service](https://www.ip2location.com/web-service/ip2location) subscription. It is a paid solution with high accuracy. For a free solution, use the [IP2LocationBinary](https://github.com/geocoder-php/ip2location-binary-provider) provider with a free [IP2Location LITE](https://www.ip2location.com/register?id=lite) database, which has less accuracy at city level. Please note that this provider is querying IP2Location Web Service **WS9** package and each query will cost **4 credits**. diff --git a/src/Provider/IP2LocationBinary/README.md b/src/Provider/IP2LocationBinary/README.md index af9f63c1e..934961f06 100644 --- a/src/Provider/IP2LocationBinary/README.md +++ b/src/Provider/IP2LocationBinary/README.md @@ -18,9 +18,9 @@ composer require geocoder-php/ip2location-binary-provider ### Note -This provider requires a BIN database file. You can download the free database from [IP2Location LITE](https://lite.ip2location.com/) website or the commercial database from [IP2Location](https://www.ip2location.com/). +This provider requires a BIN database file. You can download the free database from [IP2Location LITE](https://www.ip2location.com/register?id=lite) (sign up for a free download token) or the commercial database from [IP2Location](https://www.ip2location.com/). The LITE databases are licensed under CC BY-SA 4.0, and attribution to IP2Location is required. -For testing, download the BIN database from [here](https://lite.ip2location.com/database/ip-country-region-city-latitude-longitude-zipcode), decompress and upload the .BIN file into `.\Tests\fixtures`. +For testing, download the `IP2LOCATION-LITE-DB9.IPV6.BIN` database from your [IP2Location LITE](https://www.ip2location.com/register?id=lite) account, decompress and upload the .BIN file into `.\Tests\fixtures`. ### Contribute diff --git a/src/Provider/IP2LocationBinary/Tests/IP2LocationBinaryTest.php b/src/Provider/IP2LocationBinary/Tests/IP2LocationBinaryTest.php index 242c7bd5c..517f58e19 100644 --- a/src/Provider/IP2LocationBinary/Tests/IP2LocationBinaryTest.php +++ b/src/Provider/IP2LocationBinary/Tests/IP2LocationBinaryTest.php @@ -24,7 +24,7 @@ class IP2LocationBinaryTest extends BaseTestCase public function setUp(): void { - // Download this BIN database from https://lite.ip2location.com/database/ip-country-region-city-latitude-longitude-zipcode + // Download IP2LOCATION-LITE-DB9.IPV6.BIN from your IP2Location LITE account: https://www.ip2location.com/register?id=lite $this->binaryFile = __DIR__.'/fixtures/IP2LOCATION-LITE-DB9.IPV6.BIN'; } diff --git a/src/Provider/IP2LocationBinary/Tests/IntegrationTest.php b/src/Provider/IP2LocationBinary/Tests/IntegrationTest.php index 503a17c3e..891f70cd9 100644 --- a/src/Provider/IP2LocationBinary/Tests/IntegrationTest.php +++ b/src/Provider/IP2LocationBinary/Tests/IntegrationTest.php @@ -42,7 +42,7 @@ public static function setUpBeforeClass(): void protected function createProvider(ClientInterface $httpClient) { - // Download this BIN database from https://lite.ip2location.com/database/ip-country-region-city-latitude-longitude-zipcode + // Download IP2LOCATION-LITE-DB9.IPV6.BIN from your IP2Location LITE account: https://www.ip2location.com/register?id=lite return new IP2LocationBinary(__DIR__.'/fixtures/IP2LOCATION-LITE-DB9.IPV6.BIN', \IP2Location\Database::FILE_IO); }