Skip to content

Commit 0db954b

Browse files
authored
update sample code
1 parent 2fed5de commit 0db954b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ Use following codes in your application for get geolocation information.
4242
$this->load->library('ip2location_lib');
4343
$countryCode = $this->ip2location_lib->getCountryCode('8.8.8.8');
4444

45+
Sample Code
46+
-----------
47+
Sample codes are given in this project, under **controllers** folder. You may run the sample code by using <your_domain>/index.php/ip2location_test.
4548

4649
Methods
4750
-------
@@ -67,3 +70,4 @@ Below are the methods supported.
6770
$mobileCarrierName = $this->ip2location_lib->getMobileCarrierName($ip);
6871
$elevation = $this->ip2location_lib->getElevation($ip);
6972
$usageType = $this->ip2location_lib->getUsageType($ip);
73+

0 commit comments

Comments
 (0)