How to use session tokens correctly?
问题 I am using the Java client for the Google Places API: <dependency> <groupId>com.google.maps</groupId> <artifactId>google-maps-services</artifactId> <version>0.9.1</version> </dependency> The following is how I use the autocomplete API on my server: public List<AutocompletePrediction> searchAddress(String query) { List<AutocompletePrediction> predictions = new ArrayList<>(); try { AutocompletePrediction[] autocompletePredictions = PlacesApi .placeAutocomplete(geoApiContext, query, null)