[英]How to get photo location by latitude and longitude in android?
How to get photo location by latitude and longitude in android? 如何在Android中通过经度和纬度获取照片位置? I already get the lat and lon, now I want to fetch photo location by lat and lon that i get before.
我已经有了纬度和经度,现在我想按之前获得的纬度和经度来获取照片位置。
The Places API now supports the return of one place photo if available for a Place Search request and up to ten place photos for a Place Details request. 现在,Places API支持返回一张地点照片(如果可用于地点搜索请求),最多返回十张地点照片(用于“ 地点详细信息”请求)。
If a photos array is returned with your request, you can pass the photo_reference from a contained photo object to a Place Photo request with the maxheight and/or maxwidth, sensor and key parameters: 如果您的请求返回了一个照片数组,则可以使用maxheight和/或maxwidth,sensor和key参数将photo_reference从包含的照片对象传递到Place Photo请求:
Here is great tutorial: Showing nearby places with photos at any location in Google Maps Android API V2 这是一个很棒的教程: 在Google Maps Android API V2中的任意位置显示附近的地点并带有照片
You can try Geocoder
API to get address (If I am not mistaken, by location you mean address) for any latitude and longitude. 您可以尝试使用
Geocoder
API来获取任意纬度和经度的地址(如果我没记错的话,是指位置)。 It's getFromLocation
method will fetch the address. 它的
getFromLocation
方法将获取地址。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.