sharifulin / geo-ip-ru-ipgeobase Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ruz/geo-ip-ru-ipgeobase
This project forked from ruz/geo-ip-ru-ipgeobase
NAME Geo::IP::RU::IpGeoBase - look up location by IP address in Russia DESCRIPTION This module allows you to look up location in DB provided by http://ipgeobase.ru service. Access to the DB is free. Contains information about city, region, federal district and coordinates. DB provided as plain text files and is not very suitable for look ups without loading all data into memory. Instead it's been decided to import data into a database. Use command line utility to create and update back-end DB. At this moment DB can be created in SQLite, mysql and Pg. If you create table manually then probably module will just work. It's very easy to add support for more back-end DBs. Patches are welcome. METHODS new Returns a new object. Takes a hash with options, mostly description of the back-end: Geo::IP::RU::IpGeoBase->new( db => { dbh => $dbh, table => 'my_table', } ); # or Geo::IP::RU::IpGeoBase->new( db => { dsn => 'dbi:mysql:mydb', user => 'root', pass => 'secret', table => 'my_table', } ); * dbh - connected DBI handle, or you can use dsn. * dsn, user, pass - DSN like described in DBI, for example 'dbi:SQLite:my.db', user name and his password. * table - name of the table with data, default is 'ip_geo_base_ru'. find_by_ip Takes an IP in 'xxx.xxx.xxx.xxx' format and returns information about blocks that contains this IP. Yep, blocks, not a block. In theory DB may contain intersecting blocks. Each record is a hash reference with the fields matching table columns: istart, iend, start, end, city, region, federal_district, latitude and longitude. AUTHOR Ruslan Zakirov >[email protected]< LICENSE Under the same terms as perl itself.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.