Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Provider/IP2Location/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**.

Expand Down
4 changes: 2 additions & 2 deletions src/Provider/IP2LocationBinary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

Expand Down
2 changes: 1 addition & 1 deletion src/Provider/IP2LocationBinary/Tests/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down