@@ -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' \n ip: '%s' \n hostname: '%s' \n continent_code: '%s' \n continent_name: '%s' \n country_code2: '%s' \n country_code3: '%s' \n country_name: '%s' \n country_capital: '%s \n state_prov: '%s' \n district: '%s' \n city: '%s' \n zipcode: '%s' \n latitude: '%s' \n longitude: '%s' \n is_eu: '%s' \n calling_code: '%s' \n country_tld: '%s' \n languages: '%s' \n country_flag: '%s' \n isp: '%s' \n connection_type: '%s' \n organization: '%s' \n geoname_id: '%s'\n asn: '%s' \n route: '%s' \ n currency: {\n %s\n } \n time_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' \n ip: '%s' \n hostname: '%s' \n continent_code: '%s' \n continent_name: '%s' \n country_code2: '%s' \n country_code3: '%s' \n country_name: '%s' \n country_capital: '%s \n state_prov: '%s' \n district: '%s' \n city: '%s' \n zipcode: '%s' \n latitude: '%s' \n longitude: '%s' \n is_eu: '%s' \n calling_code: '%s' \n country_tld: '%s' \n languages: '%s' \n country_flag: '%s' \n isp: '%s' \n connection_type: '%s' \n organization: '%s' \n geoname_id: '%s'\n asn: '%s' \n currency: {\n %s\n } \n time_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