从Places API

时间:2015-09-28 06:30:12

标签: android api

我正在使用Places API,我遇到它有助于检索地点ID,ph#等信息。我试图基于getId方法配置一些数据,以便在外部数据库上进行一种查找(我正在考虑使用SQL但尚不确定)到目前为止,我只是想知道如何制作基于从API获得的placeId在外部数据库中查找信息的方法。

在这里显示包含查找结果的字符串:

     final CharSequence name = place.getName();
            final CharSequence address = place.getAddress();
            final CharSequence phone = place.getPhoneNumber();
            final String placeId = place.getId();

            (include the retrieved data in here)

            String attribution = PlacePicker.getAttributions(data);
            if(attribution == null){
                attribution = "";
            }

任何帮助都会受到高度赞赏!

0 个答案:

没有答案