IpInformation
public IpInformation(@Nonnull
String countryCodeAlpha2,
@Nullable
String geonameId,
@Nullable
String city,
@Nullable
String leastSpecificDivision,
@Nullable
String mostSpecificDivision,
@Nullable
String postcode,
@Nonnull
IP startOfRange,
@Nonnull
IP endOfRange,
@Nullable
String originalLine,
@Nullable
Boolean isVpn)
- Parameters:
countryCodeAlpha2 - the country of this location
geonameId - the geoname identifier of this location (https://www.geonames.org/) This field
will be Optional.empty() if an empty string is passed
city - the city of this location. This field will be Optional.empty() if an empty string
is passed
leastSpecificDivision - the least specific administrative division of this location. This
field will be Optional.empty() if an empty string is passed
mostSpecificDivision - the most specific administrative division of this location. This
field will be Optional.empty() if an empty string is passed
postcode - the postcode of this location. This field will be Optional.empty() if an empty
string is passed
startOfRange - the first IP of the range of IPs located in this location
endOfRange - the last IP of the range of IPs located in this location
originalLine - the database line that got processed into this location object
isVpn - whether this range is marked as VPN from the DB provider