为什么我在java中使用谷歌地图api获得不完整的答案?

我在java中使用google maps API检查某些地方是否正确,但我没有得到所有可能的响应:

GeocodingApiRequest req = GeocodingApi.newRequest(context).address("Sydney"); try { GeocodingResult[] result = req.await(); System.out.println("number of results: "+result.length); for(int i = 0;i < result.length;i++){ System.out.println(result[i].formattedAddress); AddressComponent[] ac = result[i].addressComponents; for(AddressComponent acSingle : ac){ System.out.println(acSingle.longName + " " + acSingle.shortName); } } // Handle successful request. } catch (Exception e) { // Handle error } 

我得到以下输出:

 number of results: 2 Sydney NSW, Australia Sydney Sydney New South Wales NSW Australia AU Sydney NSW, Australia Sydney Sydney New South Wales NSW Australia AU 

然而,如果您通过插入以下url请求看到可以获得的结果,结果会更多:

西德尼

在上面的链接中,您可以看到结果超过2,例如,确实在俄亥俄州也有Sidney。