简体   繁体   中英

How to get photo location by latitude and longitude in android?

How to get photo location by latitude and longitude in 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.

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:

Here is great tutorial: Showing nearby places with photos at any location in 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. It's getFromLocation method will fetch the address.

Working example

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM