File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -141,9 +141,12 @@ GeocodingResult[] results = GeocodingApi.geocode(context,
141141 " 1600 Amphitheatre Parkway Mountain View, CA 94043" ). await();
142142Gson gson = new GsonBuilder (). setPrettyPrinting(). create();
143143System . out. println(gson. toJson(results[0 ]. addressComponents));
144+
145+ // Invoke .shutdown() after your application is done making requests
146+ context. shutdown()
144147```
145148
146- The ` GeoApiContext ` is designed to be a [ Singleton] ( https://en.wikipedia.org/wiki/Singleton_pattern )
149+ ** Note: ** The ` GeoApiContext ` is designed to be a [ Singleton] ( https://en.wikipedia.org/wiki/Singleton_pattern )
147150in your application. Please instantiate one on application startup, and continue to use it for the
148151life of your application. This will enable proper QPS enforcement across all of your requests.
149152
You can’t perform that action at this time.
0 commit comments