File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/main/java/io/ipgeolocation/api Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ public class Geolocation {
1313 private final String countryCode2 ;
1414 private final String countryCode3 ;
1515 private final String countryName ;
16+ private final String countryNameOfficial ;
1617 private final String countryCapital ;
1718 private final String stateProvince ;
1819 private final String stateCode ;
@@ -54,6 +55,7 @@ public class Geolocation {
5455 this .countryCode2 = json .optString ("country_code2" );
5556 this .countryCode3 = json .optString ("country_code3" );
5657 this .countryName = json .optString ("country_name" );
58+ this .countryNameOfficial = json .optString ("country_name_official" );
5759 this .countryCapital = json .optString ("country_capital" );
5860 this .stateProvince = json .optString ("state_prov" );
5961 this .stateCode = json .optString ("state_code" );
@@ -124,6 +126,10 @@ public String getCountryName() {
124126 return countryName ;
125127 }
126128
129+ public String getCountryNameOfficial () {
130+ return countryNameOfficial ;
131+ }
132+
127133 public String getCountryCapital () {
128134 return countryCapital ;
129135 }
You can’t perform that action at this time.
0 commit comments