You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+84-1Lines changed: 84 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -407,4 +407,87 @@ public class Main
407
407
}
408
408
}
409
409
}
410
-
```
410
+
```
411
+
412
+
## COUNTRY CLASS
413
+
414
+
## Methods
415
+
Below are the methods supported in this class.
416
+
417
+
|Method Name|Description|
418
+
|---|---|
419
+
|Constructor(CSVFile)|Expect a IP2Location Country Information CSV file. This database is free for download at https://www.ip2location.com/free/country-information|
420
+
|GetCountryInfo(CountryCode)|Returns the country information.|
421
+
422
+
## Usage
423
+
424
+
```java
425
+
importcom.ip2location.*;
426
+
importjava.util.*;
427
+
428
+
publicclassMain
429
+
{
430
+
publicMain()
431
+
{
432
+
}
433
+
publicstaticvoidmain(String[] args)
434
+
{
435
+
try
436
+
{
437
+
Country cc =newCountry("/usr/data/IP2LOCATION-COUNTRY-INFORMATION.CSV");
|Constructor(CSVFile)|Expect a IP2Location ISO 3166-2 Subdivision Code CSV file. This database is free for download at https://www.ip2location.com/free/iso3166-2|
464
+
|GetRegionCode(CountryCode, RegionName)|Returns the region code for the supplied country code and region name.|
465
+
466
+
## Usage
467
+
468
+
```java
469
+
importcom.ip2location.*;
470
+
471
+
publicclassMain
472
+
{
473
+
publicMain()
474
+
{
475
+
}
476
+
publicstaticvoidmain(String[] args)
477
+
{
478
+
try
479
+
{
480
+
Region reg =newRegion("/usr/data/IP2LOCATION-ISO3166-2.CSV");
0 commit comments