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
-32Lines changed: 0 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,10 +140,6 @@ public class Main {
140
140
This library provides a system to lookup country names through ISO2 country
141
141
codes.
142
142
143
-
By default, this translation exists for English (United States). If you wish to
144
-
provide a different language mapping, just use the following system in the
145
-
builder:
146
-
147
143
```java
148
144
importio.ipinfo.api.IPinfo;
149
145
importio.ipinfo.api.errors.RateLimitedException;
@@ -153,7 +149,6 @@ public class Main {
153
149
publicstaticvoidmain(String... args) {
154
150
IPinfo ipInfo =newIPinfo.Builder()
155
151
.setToken("YOUR TOKEN")
156
-
.setCountryFile(newFile("path/to/file.json"))
157
152
.build();
158
153
159
154
try {
@@ -171,18 +166,11 @@ public class Main {
171
166
}
172
167
```
173
168
174
-
This file must follow the same layout as seen [here](https://github.com/ipinfo/java-ipinfo/blob/master/src/main/resources/en_US.json)
175
-
176
-
More language files can be found [here](https://country.io/data)
177
-
178
169
#### EU Country Lookup
179
170
180
171
This library provides a system to lookup if a country is a member of the European Union (EU) through
181
172
ISO2 country codes.
182
173
183
-
By default, [here](https://github.com/ipinfo/java-ipinfo/blob/master/src/main/resources/eu.json) is the file containing all the EU members.
184
-
If you wish to provide a different file, just use the following system in the builder:
185
-
186
174
```java
187
175
importio.ipinfo.api.IPinfo;
188
176
importio.ipinfo.api.errors.RateLimitedException;
@@ -192,7 +180,6 @@ public class Main {
192
180
publicstaticvoidmain(String... args) {
193
181
IPinfo ipInfo =newIPinfo.Builder()
194
182
.setToken("YOUR TOKEN")
195
-
.setEUCountryFile(newFile("path/to/file.json"))
196
183
.build();
197
184
198
185
try {
@@ -211,14 +198,6 @@ public class Main {
211
198
212
199
This library provides a system to lookup if a country is a member of the European Union (EU), emoji and unicode of the country's flag, code and symbol of the country's currency, and public link to the country's flag image as an SVG and continent code and name through ISO2 country codes.
213
200
214
-
Following are the file that are loaded by default:
0 commit comments