public Response correctLocation ( String photoId , String placeId , String woeId , String foursquareId ) throws JinxException { JinxUtils . validateParams ( photoId ) ; if ( JinxUtils . isNullOrEmpty ( placeId ) ) { JinxUtils . validateParams ( woeId ) ; } Map < String , String > params = new TreeMap <> ( ) ; params . put ( "method" , "flickr.photos.geo.correctLocation" ) ; params . put ( "photo_id" , photoId ) ; if ( ! JinxUtils . isNullOrEmpty ( placeId ) ) { params . put ( "place_id" , placeId ) ; } if ( ! JinxUtils . isNullOrEmpty ( woeId ) ) { params . put ( "woe_id" , woeId ) ; } if ( ! JinxUtils . isNullOrEmpty ( foursquareId ) ) { params . put ( "foursquare_id" , foursquareId ) ; } return jinx . flickrPost ( params , Response . class ) ; }
This method requires authentication with write permission .