code: public Response setPerms(String photoId, boolean isPublic, boolean isContact, boolean isFriend, boolean isFamily) throws JinxException {
      JinxUtils.validateParams(photoId);
      Map<String, String> params = new TreeMap<>();
      params.put("method", "flickr.photos.geo.setPerms");
      params.put("photo_id", photoId);
      params.put("is_public", isPublic ? "1" : "0");
      params.put("is_contact", isContact ? "1" : "0");
      params.put("is_friend", isFriend ? "1" : "0");
      params.put("is_family", isFamily ? "1" : "0");
      return jinx.flickrPost(params, Response.class);
    }
docs: Set the permission for who may view the geo data associated with a photo.
  <br>
  This method requires authentication with 'write' permission.
  
  @param photoId   (Required) The id of the photo to set permissions for.
  @param isPublic  viewing permissions for the photo location data to public.
  @param isContact viewing permissions for the photo location data to contacts.
  @param isFriend  viewing permissions for the photo location data to friends.
  @param isFamily  viewing permissions for the photo location data to family.
  @return object with the status of the requested operation.
  @throws JinxException if required parameters are missing, or if there are any errors.
  @see <a href="https://www.flickr.com/services/api/flickr.photos.geo.setPerms.html">flickr.photos.geo.setPerms</a>