With the locr API, you can show the locr photos on your website or in your own program. The locr placed photos are perfect suitable, to illustrate your own maps, words and datasets, where places are in focus (e.g. immovables, hotels, routes, resorts).
User Authorizationphoto_id or photo_name:latitudemin, latitudemax, longitudemin, longitudemax:start:count:category:user_name, user_id or album_idsearch_tag:search_city:search_caption:search_description:size:locr:User Authorization*photo_id or photo_name*:caption:description:tags:privacy:latitude:longitude:object_latitude:object_longitude:add_to_album_id or add_to_album_name:http://www.locr.com/api/update_photo_xml.php?auth_user_name=testuser&api_signature=8b55eac3b2291b201fc59cd8b76410ab&auth_token=c8b066236c8cbcc280921b93f24e281a&photo_id=123456789&caption=testupdatehttp://www.locr.com/api/update_photo_json.php?auth_user_name=testuser&api_signature=8b55eac3b2291b201fc59cd8b76410ab&auth_token=c8b066236c8cbcc280921b93f24e281a&photo_id=123456789&caption=testupdatehttp://www.locr.com/api/delete_photo_xml.php?auth_user_name=testuser&api_signature=8b55eac3b2291b201fc59cd8b76410ab&auth_token=c8b066236c8cbcc280921b93f24e281a&photo_id=123456789http://www.locr.com/api/delete_photo_json.php?auth_user_name=testuser&api_signature=8b55eac3b2291b201fc59cd8b76410ab&auth_token=c8b066236c8cbcc280921b93f24e281a&photo_id=123456789User Authorization*file* (HTTP-POST Method)<?xml version="1.0"?> <photo_list status="ok" thumbnail_ext="_T" square_ext="_SQ" small_ext="_S" medium_ext="_M" large_ext="_L" original_ext=""> <photos> <photo path="http://www.locr.com/photos/000/ed/b3/" name="edb307d24849b30243a1f6feaeae5380" ext="jpg" width="1600" height="1200" comments_count="3"> <photo_id>1234567</id> <photo_url>http://www.locr.com/photo_detail.php?id=1234567</photo_url> <photo_file_url> http://www.locr.com/photos/000/ed/b3/edb307d24849b30243a1f6feaeae5380_SQ.jpg </photo_file_url> <privacy>0</privacy> <latitude>51.947616</latitude> <longitude>10.5649</longitude> <location_name>test-location</location_name> <caption>test</caption> <description>test description</description> <tags>test, photo 1</tags> <created>0000-00-00 00:00:00</created> <submitted>2007-09-20 14:12:16</submitted> <user_name>testuser</user_name> <user_url>http://www.locr.com/profile/testuser</user_url> </photo> <photo path="http://www.locr.com/photos/000/76/fa/" name="76faddc60a6aa3f096c4b5e1230cbbc5" ext="jpg" width="1600" height="1200" comments_count="5"> <photo_id>1234568</id> <photo_url>http://www.locr.com/photo_detail.php?id=1234568</photo_url> <photo_file_url> http://www.locr.com/photos/000/76/fa/76faddc60a6aa3f096c4b5e1230cbbc5_SQ.jpg </photo_file_url> <privacy>0</privacy> <latitude>51.225005</latitude> <longitude>6.775627</longitude> <location_name>test-location2</location_name> <caption>test2</caption> <description>test description 2</description> <tags>test, photo 2</tags> <created>0000-00-00 00:00:00</created> <submitted>2007-09-11 12:08:49</submitted> <user_name>testuser2</user_name> <user_url>http://www.locr.com/profile/testuser2</user_url> </photo> ... </photos> </photo_list>
100: Database Error101: Access Denied200: Invalid Value201: Missing Parameter202: Missing Value203: Value is not a number204: Value is out of Range205: User not found206: Incorrect Authentification207: Permission Denied208: Parameter is readonly209: Wrong Format210: Upload Limit exceeded211: Photo already uploaded212: Photo don't exists213: Album Name already exists214: No more Albums allowed215: Album not found<?xml version="1.0"?> <photo_list status="fail"> <info> <error code="202" message="Missing Value"> <value>search</value> </error> </info> <photos> </photos> </photo_list>
privacy:
0 -> Public500 -> Friends800 -> Family1000 -> Private