URL | Parameters | Response Properties | Example | Query | Response
The flickr view method takes any type of entity's guid and returns a JSON array of object name/value pairs. Each object represents a publically viewable Flickr-stored photo and its metadata. By default, the pictures were taken in the last 12 hours either within 5km of point entities or within the boundaries of polygon-defined entities. If no photos are found, the empty list [] is returned.
Photo results are returned in the format of Flickr's JSON Search API.
http://api.geoapi.com/v1/e/<guid>/view/flickr
http://api.geoapi.com/v1/e/<guid>/view/flickr:<view-parameters>
Parameters [Top]
- guid:
- Required.
- Any GeoAPI entity's guid. All entity types are valid.
- Format: String.
- apikey:
- Required.
- Your GeoAPI key.
- Format: String.
- pretty:
- Optional.
- Enables easier to read prettified JSON in result.
- Format: Set equal to 1 to enable prettification.
- jsoncallback:
- Optional.
- Return response in JSONP format. JQuery has nice support for JSONP callbacks.
- Format: JSON prefix string.
- <view-parameters>:
- Optional.
- Any of the parameters accepted by the Flickr Search API. These are passed on to Flickr.
Response Properties [Top]
Results are in the format of Flickr's JSON Search API.
flickr is also used in the Media Layers demo.
http://api.geoapi.com:8080/e/ritual-coffee-roasters-san-francisco-ca-94110/view/flickr?apikey=demo&pretty=1
{
"query": {
"params": {
"guid": "ritual-coffee-roasters-san-francisco-ca-94110",
"view": "flickr"
},
"type": "entity-view"
},
"result": [
{
"pathalias": "polvero",
"height_o": "2048",
"machine_tags": "",
"place_id": "KqHKyeqcBJWO_7bUCA",
"url_sq": "http://farm3.static.flickr.com/2803/4087660525_5dcbd3131b_s.jpg",
"media_status": "ready",
"originalformat": "jpg",
"o_height": "2048",
"owner": "38687875@N00",
"id": "4087660525",
"iconfarm": 1,
"lastupdate": "1257968532",
"title": "Day Three Hundred Twelve",
"woeid": "55970943",
"tags": "sanfrancisco sky me nikon sunday shoppingcart wideangle 365 missiondistrict cart rolling d3 featured dustindiaz strobist threelights sb900 dedfolio",
"datetaken": "2009-11-08 18:19:33",
"farm": 3,
"secret": "5dcbd3131b",
"ownername": "Dustin Diaz",
"latitude": 37.750853999999997,
"height_t": "100",
"accuracy": "16",
"isfamily": 0,
"o_width": "2048",
"ispublic": 1,
"height_sq": 75,
"views": "3958",
"isfriend": 0,
"datetakengranularity": "0",
"originalsecret": "aa500094db",
"dateupload": "1257734862",
"width_o": "2048",
"width_m": "500",
"license": "3",
"iconserver": "35",
"height_m": "500",
"url_t": "http://farm3.static.flickr.com/2803/4087660525_5dcbd3131b_t.jpg",
"url_s": "http://farm3.static.flickr.com/2803/4087660525_5dcbd3131b_m.jpg",
"longitude": -122.420514,
"server": "2803",
"url_o": "http://farm3.static.flickr.com/2803/4087660525_aa500094db_o.jpg",
"media": "photo",
"url_m": "http://farm3.static.flickr.com/2803/4087660525_5dcbd3131b.jpg",
"height_s": "240",
"width_t": "100",
"width_sq": 75,
"width_s": "240"
},
...
]
}