我正在开发一个Android应用程序,我需要在其中实现以下目标 .
获取设备的当前位置(坐标) - 完成
在给定半径范围内搜索最近的 Bus 车站的设备位置并列出它们 .
第二件事我需要帮助 . 有没有办法从Android应用程序中的谷歌 Map 获取最近的 Bus 车站?我可以使用Google Places API来实现这一目标吗?(官方网页上说它仍处于试验阶段) . 如果有,怎么样?
谢谢 .
我可以通过引用Davy's Tech Blog Article和Github中提供的代码示例来成功实现这些目标
谢谢你的帮助 .
对坐标进行反向地理编码:
https://developers.google.com/maps/documentation/geocoding/#ReverseGeocoding
然后像这样搜索:
https://maps.google.com/maps?q=transit在the_address_obtain_with_reverse_geocoding&output = json附近停止
2 回答
我可以通过引用Davy's Tech Blog Article和Github中提供的代码示例来成功实现这些目标
谢谢你的帮助 .
对坐标进行反向地理编码:
https://developers.google.com/maps/documentation/geocoding/#ReverseGeocoding
然后像这样搜索:
https://maps.google.com/maps?q=transit在the_address_obtain_with_reverse_geocoding&output = json附近停止