目前我正在开展一个项目,我需要使用Google Places API,而且我在使用Google Places API时也太新手了。我想问的情况是,如何使用place_id获取地点的详细信息,这是我在地方添加时得到的?
我搜索了所有地方,但大多数人说你必须在请求参数中使用引用属性。那么,我能解决这个问题吗?
我在Google Places API文档中从这些行中读取了这些信息: -
Place Add Responses
Place add responses are returned in the format indicated by the output flag within the request's URL path.
The API returns a status code, and if the request was successful the response includes the following properties for the new place:
place_id: A unique identifier for a place. To retrieve information about the place, pass this identifier in the placeId field of a Places API request.
答案 0 :(得分:0)
有人为Places API构建了一个完整的库,用于在java或android中进行开发。请参阅此链接:https://github.com/windy1/google-places-api-java