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
| IPGeolocationAPI(String apiKey) throws IllegalArgumentException | Constructs the IPGeolocationAPI object. It takes a valid apiKey as a parameter and throws IllegalArgumentException if apiKey is empty or null. ||
459
-
| getApiKey() | Return the API key that you set to query the IPGeolocation API. | String |
| IPGeolocationAPI(String apiKey) throws IllegalArgumentException | Constructs the IPGeolocationAPI object. It takes a valid apiKey as a parameter and throws IllegalArgumentException if apiKey is empty or null. ||
459
+
| getApiKey() | Return the API key that you set to query the IPGeolocation API. | String |
| getGeolocation(GeolocationParams params) | Query Geolocation API based on the parameters passed. | Geolocation |
462
+
| getBulkGeolocation(String[] ips) | Query Geolocation API to lookup multiple IP addresses (max. 50). | List<Geolocation> |
463
+
| getBulkGeolocation(String[] ips, GeolocationParams params) | Query Geolocation API to lookup multiple IP addresses (max. 50) based upon the parameters passed. | List<Geolocation> |
464
+
| getTimezone() | Query Timezone API based on calling machine's IP address. | Timezone |
465
+
| getTimezone(TimezoneParams params) | Query Timezone API based on the parameters passed. | Timezone |
466
+
| convertTimeZone(TimezoneConvertParams params) | Convert between different timezones. | TimezoneConvert |
| withTimezone(String timezone) | Sets time zone ID to query time zone information. | TimezoneParamsBuilder |
583
-
| withIPAddress(String ip) | Sets IP address to query time zone information. | TimezoneParamsBuilder |
587
+
| withTimezone(String timeZone) | Sets time zone ID to query time zone information. | TimezoneParamsBuilder |
588
+
| withIPAddress(String ipAddress)| Sets IP address to query time zone information. | TimezoneParamsBuilder |
584
589
| withCoordinates(BigDecimal latitude, BigDecimal longitude) | Sets latitude and longitude of a location to query time zone information. | TimezoneParamsBuilder |
585
590
| withLocation(String location) | Set location parameter to get timezone details. | TimezoneParamsBuilder |
586
591
| withLang(String lang) | Set language parameter to lookup geolocation. Default is 'en'. | TimezoneParamsBuilder |
@@ -607,7 +612,7 @@ IP Geolocation API Java SDK has the following classes that you can use to fully
607
612
| getYearAbbr() | Returns 2-letters year abbreviation like "18". | String |
608
613
| isDST() | Returns is the country observing Daylight Saving time. | boolean |
609
614
| getDSTSavings() | Returns daylight savings time (in hours). | int |
610
-
|getTimezoneGeo()| Returns geolocation of timezone if you lookup timezone information from an IP address. | TimezoneGeo |
615
+
|getGeo() | Returns geolocation of timezone if you lookup timezone information from an IP address. | TimezoneGeo |
611
616
612
617
### Class: io.ipgeolocation.api.TimezoneGeo
613
618
@@ -676,14 +681,14 @@ IP Geolocation API Java SDK has the following classes that you can use to fully
676
681
| builder() | Returns an instance of AstronomyParamsBuilder class. | static AstronomyParamsBuilder |
| withCoordinates(BigDecimal latitude, BigDecimal longitude) | Sets latitude and longitude of a location to query astronomy information. | AstronomyParamsBuilder |
688
+
| withIPAddress(String ipAddress) | Sets IP address of which to query astronomy information. | AstronomyParamsBuilder |
689
+
| withDate(String date) | Sets date of which to query astronomy information. | AstronomyParamsBuilder |
690
+
| withLang(String lang) | Sets language in which to query information. | AstronomyParamsBuilder |
691
+
| build() | Returns an instance of AstronomyParams with the above specified value(s). |AstronomyParams |
687
692
688
693
### Class: io.ipgeolocation.api.Astronomy
689
694
| Method | Description | Return Type |
@@ -725,3 +730,26 @@ IP Geolocation API Java SDK has the following classes that you can use to fully
725
730
| getLocality() | Returns the locality of the queried astronomy information. | String |
726
731
| getCity() | Returns the city of the queried astronomy information. | String |
727
732
| toString() | Returns the fetched JSON from the API in the formatted way. | String |
| getTimezoneFrom() | Returns the source [timezone ID](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) for which conversion would be performed. | String |
738
+
| getTimezoneTo() | Returns the target timezone ID for which conversion would be performed. | String |
739
+
| getTime() | Returns the dateTime which would be used for conversion. | String |
740
+
| getLatitudeFrom() | Returns the source latitude for which conversion would be performed. | BigDecimal |
741
+
| getLongitudeFrom() | Returns the source longitude for which conversion would be performed. | BigDecimal |
742
+
| getLatitudeTo() | Returns the target latitude for which conversion would be performed. | BigDecimal |
743
+
| getLongitudeTo() | Returns the target longitude for which conversion would be performed. | BigDecimal |
744
+
| getLocationFrom() | Returns the source location (i.e., city, country) for which conversion would be performed. | String |
745
+
| getLocationTo() | Returns the target location (i.e., city, country) for which conversion would be performed. | String |
746
+
| builder() | Returns an instance of TimezoneConvertParamsBuilder class to create TimezoneConvertParams object with custom parameters. | static TimezoneConvertParams |
0 commit comments