How to parse Address from Google Places GeoDataApi for Android, (address_components missing)
- 阅读更多 关于 How to parse Address from Google Places GeoDataApi for Android, (address_components missing)
We use the Google Places API prediction similar as in the example app. On selection of a result we get the details for the predicted location using: Places.GeoDataApi.getPlaceById(mGoogleApiClient, placeId); This works fine, my problem is that the result contains just a String as address. When using the JS version of the API , the result contains this: "address_components" : [ { "long_name" : "522", "short_name" : "522", "types" : [ "street_number" ] }, { "long_name" : "Overtoom", "short_name" : "Overtoom", "types" : [ "route" ] }, { "long_name" : "Amsterdam-West", "short_name" : "Amsterdam