简体   繁体   中英

Google Places API for Android autocomplete extract data

Is there any way to extract data like city and postcode from the Place object after I select a place in the autocomplete widget. Currently in onActivityResult I only get the Place object on which I have a method getAddress(). But this returns me just a string...

否。您必须致电api形式的地点详细信息

这是文档https://developers.google.com/places/android-api/autocomplete#option_2_use_an_intent_to_launch_the_autocomplete_activity ,该文档非常清楚地说明了如何获取城市和邮政编码。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM