FlickrNet.Flickr.PhotosGeoGetLocation C# (CSharp) Méthode

PhotosGeoGetLocation() public méthode

Returns the location data for a give photo.
public PhotosGeoGetLocation ( string photoId ) : PhotoLocation
photoId string The ID of the photo to return the location information for.
Résultat PhotoLocation
        public PhotoLocation PhotosGeoGetLocation(string photoId)
        {
            Hashtable parameters = new Hashtable();
            parameters.Add("method", "flickr.photos.geo.getLocation");
            parameters.Add("photo_id", photoId);

            FlickrNet.Response response = GetResponseCache(parameters);
            if( response.Status == ResponseStatus.OK )
            {
                return response.PhotoInfo.Location;
            }
            else
            {
                if( response.Error.Code == 2 )
                    return null;
                else
                    throw new FlickrException(response.Error);
            }
        }
Flickr