@@ -51,8 +51,9 @@ should not be used to identify a particular address or household.
5151
5252To use the web service API, you must create a new ` WebServiceClient ` using the
5353` WebServiceClient.Builder ` . You must provide the ` Builder ` constructor your
54- MaxMind ` accountId ` and ` licenseKey ` . You may also set a ` timeout ` , specify a
55- specific ` host ` , or set the ` locales ` fallback order using the methods on the
54+ MaxMind ` accountId ` and ` licenseKey ` . To use the GeoLite2 web services instead
55+ of GeoIP2, set the ` host ` method on the builder to ` geolite.info ` . You may also
56+ set a ` timeout ` or set the ` locales ` fallback order using the methods on the
5657` Builder ` . After you have created the ` WebServiceClient ` , you may then call
5758the method corresponding to a specific end point, passing it the IP address
5859you want to look up.
@@ -82,6 +83,9 @@ See the API documentation for more details.
8283// it should not be closed until you are finished making requests with it.
8384//
8485// Replace "42" with your account ID and "license_key" with your license key.
86+ // To use the GeoLite2 web service instead of GeoIP2 Precision, call the
87+ // host method on the builder with "geolite.info", e.g.
88+ // new WebServiceClient.Builder(42, "license_key").host("geolite.info").build()
8589try (WebServiceClient client = new WebServiceClient .Builder (42 , " license_key" )
8690 .build()) {
8791
@@ -106,6 +110,9 @@ try (WebServiceClient client = new WebServiceClient.Builder(42, "license_key")
106110// it should not be closed until you are finished making requests with it.
107111//
108112// Replace "42" with your account ID and "license_key" with your license key.
113+ // To use the GeoLite2 web service instead of GeoIP2 Precision, call the
114+ // host method on the builder with "geolite.info", e.g.
115+ // new WebServiceClient.Builder(42, "license_key").host("geolite.info").build()
109116try (WebServiceClient client = new WebServiceClient .Builder (42 , " license_key" )
110117 .build()) {
111118
@@ -144,6 +151,7 @@ try (WebServiceClient client = new WebServiceClient.Builder(42, "license_key")
144151// it should not be closed until you are finished making requests with it.
145152//
146153// Replace "42" with your account ID and "license_key" with your license key.
154+ // Please note that the GeoLite2 web service does not support Insights.
147155try (WebServiceClient client = new WebServiceClient .Builder (42 , " license_key" )
148156 .build()) {
149157
0 commit comments