Skip to content

Commit e7739d6

Browse files
committed
update by removing route field
1 parent 7492fc9 commit e7739d6

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Add the following dependency in 'pom.xml' file to use the IP Geolocation API Jav
3535
<dependency>
3636
<groupId>io.ipgeolocation</groupId>
3737
<artifactId>ipgeolocation</artifactId>
38-
<version>1.0.8</version>
38+
<version>1.0.9</version>
3939
</dependency>
4040
```
4141

@@ -50,7 +50,7 @@ repositories {
5050
}
5151
5252
dependencies {
53-
compile 'io.ipgeolocation:ipgeolocation:1.0.8'
53+
compile 'io.ipgeolocation:ipgeolocation:1.0.9'
5454
...
5555
}
5656
```
@@ -60,7 +60,7 @@ dependencies {
6060
Add the following dependency code in 'ivy.xml' file to use the IP Geolocation API Java SDK.
6161

6262
```ivy
63-
<dependency org='io.ipgeolocation' name='ipgeolocation' rev='1.0.8'>
63+
<dependency org='io.ipgeolocation' name='ipgeolocation' rev='1.0.9'>
6464
<artifact name='ipgeolocation' />
6565
</dependency>
6666
```
@@ -69,7 +69,7 @@ Add the following dependency code in 'ivy.xml' file to use the IP Geolocation AP
6969

7070
Use the following URL to download the latest JAR file for IP Geolocation API Java SDK.
7171

72-
* [https://ipgeolocation.io/downloads/ip-geolocation-api-java-1.0.5.jar](https://ipgeolocation.io/downloads/ip-geolocation-api-java-1.0.8.jar)
72+
* [https://ipgeolocation.io/downloads/ip-geolocation-api-java-1.0.9.jar](https://ipgeolocation.io/downloads/ip-geolocation-api-java-1.0.9.jar)
7373

7474
Basic Usage
7575
-----------
@@ -278,7 +278,6 @@ IP Geolocation API Java SDK has following classes that you can use to fully leve
278278
| getConnectionType() | Returns connection type of the IP address. | String |
279279
| getOrganization() | Returns organization of the IP address. | String |
280280
| getAsn() | Returns AS number of the IP address. | String |
281-
| getRoute() | Returns BGP route of the IP address. | String |
282281
| getGeonameID() | Returns geoname ID from geonames.org database. | String |
283282
| getCurrency() | Returns currency information of the country. | GeolocationCurrency |
284283
| getTimezone() | Returns time zone information of the country. | GeolocationTimezone |

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.ipgeolocation</groupId>
88
<artifactId>ipgeolocation</artifactId>
9-
<version>1.0.5</version>
9+
<version>1.0.9</version>
1010

1111
<dependencies>
1212
<dependency>

src/main/java/io/ipgeolocation/api/Geolocation.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public class Geolocation {
3131
private String connectionType;
3232
private String organization;
3333
private String asn;
34-
private String route;
3534
private String geonameID;
3635
private GeolocationCurrency currency;
3736
private GeolocationTimezone timezone;
@@ -67,7 +66,6 @@ public class Geolocation {
6766
this.connectionType = (String) json.get("connection_type");
6867
this.organization = (String) json.get("organization");
6968
this.asn = (String) json.get("asn");
70-
this.route = (String) json.get("route");
7169
this.geonameID = (String) json.get("geoname_id");
7270
if(json.get("currency") instanceof LinkedTreeMap) {
7371
Map currencyJson = (LinkedTreeMap) json.get("currency");
@@ -185,10 +183,6 @@ public String getAsn() {
185183
return asn;
186184
}
187185

188-
public String getRoute() {
189-
return route;
190-
}
191-
192186
public String getGeonameID() {
193187
return geonameID;
194188
}
@@ -214,6 +208,6 @@ public String toString() {
214208
timezoneString = timezone.toString();
215209
}
216210

217-
return String.format("domain: '%s' \nip: '%s' \nhostname: '%s' \ncontinent_code: '%s' \ncontinent_name: '%s' \ncountry_code2: '%s' \ncountry_code3: '%s' \ncountry_name: '%s' \ncountry_capital: '%s \nstate_prov: '%s' \ndistrict: '%s' \ncity: '%s' \nzipcode: '%s' \nlatitude: '%s' \nlongitude: '%s' \nis_eu: '%s' \ncalling_code: '%s' \ncountry_tld: '%s' \nlanguages: '%s' \ncountry_flag: '%s' \nisp: '%s' \nconnection_type: '%s' \norganization: '%s' \ngeoname_id: '%s'\nasn: '%s' \nroute: '%s' \ncurrency: {\n%s\n} \ntime_zone: {\n%s\n}\n", domain, ip, hostname, continentCode, continentName, countryCode2, countryCode3, countryName, countryCapital, stateProvince, district, city, zipCode, latitude, longitude, isEU, callingCode, countryTLD, languages, countryFlag, isp, connectionType, organization, geonameID, asn, route, currencyString, timezoneString);
211+
return String.format("domain: '%s' \nip: '%s' \nhostname: '%s' \ncontinent_code: '%s' \ncontinent_name: '%s' \ncountry_code2: '%s' \ncountry_code3: '%s' \ncountry_name: '%s' \ncountry_capital: '%s \nstate_prov: '%s' \ndistrict: '%s' \ncity: '%s' \nzipcode: '%s' \nlatitude: '%s' \nlongitude: '%s' \nis_eu: '%s' \ncalling_code: '%s' \ncountry_tld: '%s' \nlanguages: '%s' \ncountry_flag: '%s' \nisp: '%s' \nconnection_type: '%s' \norganization: '%s' \ngeoname_id: '%s'\nasn: '%s' \ncurrency: {\n%s\n} \ntime_zone: {\n%s\n}\n", domain, ip, hostname, continentCode, continentName, countryCode2, countryCode3, countryName, countryCapital, stateProvince, district, city, zipCode, latitude, longitude, isEU, callingCode, countryTLD, languages, countryFlag, isp, connectionType, organization, geonameID, asn, currencyString, timezoneString);
218212
}
219213
}

0 commit comments

Comments
 (0)