Open abdullahdevrel opened 2 months ago
We already have the ip2location_db
why do I need this?
@DanielnetoDotCom The database you are using is a paid database, I believe. However, our database is free, and it comes with full accuracy and daily updates. There is absolutely no compromise on the data accuracy. The only shortcoming is that it does not have city-level granularity.
I see now, do you have a mysql dump version of it?
mysql query samples?
php code samples?
@DanielnetoDotCom Our CSV database can be easily migrated to MySQL, making it not too difficult to transfer your codebase to us. I would recommend taking a look at the database schema here: https://ipinfo.io/developers/ip-to-country-asn-database
The same goes for the PHP code. Your existing code should fundamentally work; you only need to adjust it for the changes in the database schema.
I am curious as to why you are not using the binary file format of the IP database. We provide the 'MMDB' file format, and by using the MMDB reader library, you can make queries extremely fast.
I am requesting to add support for IPinfo's IP to Country database to the project. The database has the following features:
Database schema
start_ip
end_ip
country
country_name
continent
continent_name
asn
as_name
as_domain
Documentation: https://ipinfo.io/developers/ip-to-country-asn-database
Samples are available here: https://github.com/ipinfo/sample-database/tree/main/IP%20to%20Country%20ASN
The database can be downloaded simply by accessing the storage URI with an access token.
Let me know what you think. Thanks!