Documentation for this section has not yet been entered.
Type | Description |
---|---|
DatabaseReader | Instances of this class provide a reader for the GeoIP2 database format |
IGeoIP2DatabaseReader | Interface for database reader |
IGeoIP2Provider | This class provides the interface implemented by both MaxMind.GeoIP2.DatabaseReader and MaxMind.GeoIP2.WebServiceClient. |
IGeoIP2WebServicesClient | Interface for web-service client |
WebServiceClient |
This class provides a client API for all the GeoIP2 Precision web service end points. The end points are Country, City, and Insights. Each end point returns a different set of data about an IP address, with Country returning the least data and Insights the most. Each web service end point is represented by a different model class which contains data about the IP address. If the web service does not return a particular piece of data for an IP address, the associated property is not populated. The web service may not return any information for an entire record, in which case all of the properties for that model class will be empty. Usage The basic API for this class is the same for all of the web service end points. First you create a web service object with your MaxMind userID and licenseKey, then you call the method corresponding to a specific end point, passing it the IP address you want to look up. If the request succeeds, the method call will return a model class for the end point you called. This model in turn contains multiple record classes, each of which represents part of the data returned by the web service. If the request fails, the client class throws an exception. Exceptions For details on the possible errors returned by the web service itself, see the GeoIP2 web service documentation . |
Documentation for this section has not yet been entered.
Type | Description |
---|---|
AddressNotFoundException | This exception is thrown when the IP address is not found in the database. This generally means that the address was a private or reserved address. |
AuthenticationException | This exception is thrown when there is an authentication error. |
GeoIP2Exception | This class represents a generic GeoIP2 error. All other exceptions thrown by the GeoIP2 API subclass this exception |
HttpException | This class represents an HTTP transport error. This is not an error returned by the web service itself. As such, it is a IOException instead of a GeoIP2Exception. |
InvalidRequestException | This class represents a non-specific error returned by MaxMind's GeoIP2 web service. This occurs when the web service is up and responding to requests, but the request sent was invalid in some way. |
OutOfQueriesException | This exception is thrown when your account does not have any queries remaining for the called service. |
Documentation for this section has not yet been entered.
Type | Description |
---|---|
City | City-level data associated with an IP address. |
Continent | Contains data for the continent record associated with an IP address. Do not use any of the continent names as a database or dictionary key. Use the or instead. |
Country | Contains data for the country record associated with an IP address. Do not use any of the country names as a database or dictionary key. Use the or instead. |
Location | Contains data for the location record associated with an IP address. |
MaxMind | Contains data related to your MaxMind account. |
NamedEntity | Abstract class for records with name maps. |
Postal | Contains data for the postal record associated with an IP address. |
RepresentedCountry | Contains data for the represented country associated with an IP address. This class contains the country-level data associated with an IP address for the IP's represented country. The represented country is the country represented by something like a military base. Do not use any of the country names as a database or dictionary key. Use the or instead. |
Subdivision | Contains data for the subdivisions associated with an IP address. Do not use any of the subdivision names as a database or dictionary key. Use the or instead. |
Traits | Contains data for the traits record associated with an IP address. |
WebServiceError | Contains data about an error that occurred while calling the web service |
Documentation for this section has not yet been entered.
Type | Description |
---|---|
AbstractCityResponse | Abstract class that city-level response. |
AbstractCountryResponse | Abstract class for country-level response. |
AbstractResponse | Abstract class that represents a generic response. |
AnonymousIPResponse | This class represents the GeoIP2 Anonymous IP response. |
CityResponse | This class provides a model for the data returned by GeoIP2 Precision: City and GeoIP2 City. The only difference between the City and Insights response classes is which fields in each record may be populated. GeoIP2 Web Services |
ConnectionTypeResponse | This class represents the GeoIP2 Connection-Type response. |
CountryResponse | This class provides a model for the data returned by the GeoIP2 Precision: Country and GeoIP2 Country. The only difference between the City and Insights response classes is which fields in each record may be populated. See GeoIP2 Web Services |
DomainResponse | This class represents the GeoIP2 Domain response. |
EnterpriseResponse | This class provides a model for the data returned by the GeoIP2 Precision: Insights end point. The only difference between the City and Insights response classes is which fields in each record may be populated. GeoIP2 Web Services |
InsightsResponse | This class provides a model for the data returned by the GeoIP2 Precision: Insights end point. The only difference between the City and Insights response classes is which fields in each record may be populated. GeoIP2 Web Services |
IspResponse | This class represents the GeoIP2 ISP response. |