使用Google Places API Android使用Sqlite数据库获取最近的位置

时间:2013-09-04 10:35:41

标签: android sqlite

我是Google Places API的新手。我看过许多显示给定半径结果的例子。我在sqlite数据库中有Lang和Lat值现在我想在最近的位置搜索我当前位置的给定地址。任何人都可以指导我完成这个吗?

很少有关于此问题的stackoverflow问题,并给出了公式的解决方案。

Query to get records based on Radius in SQLite? Google Maps API, retrieving nearest places

任何人都可以给我链接到演示示例吗?

1 个答案:

答案 0 :(得分:0)

使用:

https://maps.googleapis.com/maps/api/place/search/json?location=lat,lng&radius=RADIUS&types=TYPES&sensor=false&key=KEY

其中: lat - 你的优势 lng - 你的经度 RADIUS - 以米为单位的半径 TYPES - 地点类型(如果多于一个,请用'|'分隔) KEY - 你的api密钥

您可以在此处详细了解:

https://developers.google.com/places/documentation/search