Skip to content

Commit fe3caeb

Browse files
committed
added method getLocation()
added new method getLocation() for param 'location'
1 parent 0045e98 commit fe3caeb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public class TimezoneGeo {
1212
private final String district;
1313
private final String city;
1414
private final String locality;
15+
private final String location;
1516
private final String zipCode;
1617
private final BigDecimal latitude;
1718
private final BigDecimal longitude;
@@ -33,6 +34,7 @@ public class TimezoneGeo {
3334
this.district = json.optString("district");
3435
this.city = json.getString("city");
3536
this.locality = json.optString("locality");
37+
this.location = json.optString("location");
3638
this.zipCode = json.optString("zipcode");
3739
this.latitude = json.getBigDecimal("latitude");
3840
this.longitude = json.getBigDecimal("longitude");
@@ -67,6 +69,10 @@ public String getLocality() {
6769
return locality;
6870
}
6971

72+
public String getLocation() {
73+
return location;
74+
}
75+
7076
public String getZipCode() {
7177
return zipCode;
7278
}

0 commit comments

Comments
 (0)