Current section

Files

Jump to
flickrex lib flickr getMethodInfo flickr.photos.geo.setLocation.json
Raw

lib/flickr/getMethodInfo/flickr.photos.geo.setLocation.json

{
"arguments": {
"argument": [
{
"_content": "Your API application key. <a href=\"/services/api/misc.api_keys.html\">See here</a> for more details.",
"name": "api_key",
"optional": 0
},
{
"_content": "The id of the photo to set location data for.",
"name": "photo_id",
"optional": "0"
},
{
"_content": "The latitude whose valid range is -90 to 90. Anything more than 6 decimal places will be truncated.",
"name": "lat",
"optional": "0"
},
{
"_content": "The longitude whose valid range is -180 to 180. Anything more than 6 decimal places will be truncated.",
"name": "lon",
"optional": "0"
},
{
"_content": "Recorded accuracy level of the location information. World level is 1, Country is ~3, Region ~6, City ~11, Street ~16. Current range is 1-16. Defaults to 16 if not specified.",
"name": "accuracy",
"optional": "1"
},
{
"_content": "Context is a numeric value representing the photo's geotagginess beyond latitude and longitude. For example, you may wish to indicate that a photo was taken \"indoors\" or \"outdoors\". <br /><br />\nThe current list of context IDs is :<br /><br/>\n<ul>\n<li><strong>0</strong>, not defined.</li>\n<li><strong>1</strong>, indoors.</li>\n<li><strong>2</strong>, outdoors.</li>\n</ul><br />\nThe default context for geotagged photos is 0, or \"not defined\"\n",
"name": "context",
"optional": "1"
}
]
},
"errors": {
"error": [
{
"_content": "The photo id was either invalid or was for a photo not viewable by the calling user.",
"code": "1",
"message": "Photo not found"
},
{
"_content": "Some or all of the required arguments were not supplied.",
"code": "2",
"message": "Required arguments missing."
},
{
"_content": "The latitude argument failed validation.",
"code": "3",
"message": "Not a valid latitude."
},
{
"_content": "The longitude argument failed validation.",
"code": "4",
"message": "Not a valid longitude."
},
{
"_content": "The accuracy argument failed validation.",
"code": "5",
"message": "Not a valid accuracy."
},
{
"_content": "There was an unexpected problem setting location information to the photo.",
"code": "6",
"message": "Server error."
},
{
"_content": "Before users may assign location data to a photo they must define who, by default, may view that information. Users can edit this preference at <a href=\"http://www.flickr.com/account/geo/privacy/\">http://www.flickr.com/account/geo/privacy/</a>",
"code": "7",
"message": "User has not configured default viewing settings for location data."
},
{
"_content": "SSL is required to access the Flickr API.",
"code": 95,
"message": "SSL is required"
},
{
"_content": "The passed signature was invalid.",
"code": 96,
"message": "Invalid signature"
},
{
"_content": "The call required signing but no signature was sent.",
"code": 97,
"message": "Missing signature"
},
{
"_content": "The login details or auth token passed were invalid.",
"code": 98,
"message": "Login failed / Invalid auth token"
},
{
"_content": "The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.",
"code": 99,
"message": "User not logged in / Insufficient permissions"
},
{
"_content": "The API key passed was not valid or has expired.",
"code": 100,
"message": "Invalid API Key"
},
{
"_content": "The requested service is temporarily unavailable.",
"code": 105,
"message": "Service currently unavailable"
},
{
"_content": "The requested operation failed due to a temporary issue.",
"code": 106,
"message": "Write operation failed"
},
{
"_content": "The requested response format was not found.",
"code": 111,
"message": "Format \"xxx\" not found"
},
{
"_content": "The requested method was not found.",
"code": 112,
"message": "Method \"xxx\" not found"
},
{
"_content": "The SOAP envelope send in the request could not be parsed.",
"code": 114,
"message": "Invalid SOAP envelope"
},
{
"_content": "The XML-RPC request document could not be parsed.",
"code": 115,
"message": "Invalid XML-RPC Method Call"
},
{
"_content": "One or more arguments contained a URL that has been used for abuse on Flickr.",
"code": 116,
"message": "Bad URL found"
}
]
},
"method": {
"description": {
"_content": "Sets the geo data (latitude and longitude and, optionally, the accuracy level) for a photo.\n\nBefore users may assign location data to a photo they must define who, by default, may view that information. Users can edit this preference at <a href=\"http://www.flickr.com/account/geo/privacy/\">http://www.flickr.com/account/geo/privacy/</a>. If a user has not set this preference, the API method will return an error."
},
"name": "flickr.photos.geo.setLocation",
"needslogin": 1,
"needssigning": 1,
"requiredperms": "2"
},
"stat": "ok"
}