You are here

function flickr_places_findbylatlon in Flickr 7

Returns a place ID for a latitude and longitude.

Parameters

string $lat: Latitude from -90 to 90. Anything after 4 decimals will be truncated.

string $lon: Longitude from -90 to 90. Anything after 4 decimals will be truncated.

Return value

array $response Response from the flickr method flickr.places.findByLatLon. (https://www.flickr.com/services/api/flickr.places.findByLatLon.html)

1 call to flickr_places_findbylatlon()
flickr_album in ./flickr.inc
Render multiple photos as an album.

File

./flickr.api.inc, line 473
Flickr API functions.

Code

function flickr_places_findbylatlon($lat, $lon) {
  $args = array(
    'lat' => $lat,
    'lon' => $lon,
  );
  $response = flickr_request('flickr.places.findByLatLon', $args);
  if ($response) {
    return $response;
  }
  return FALSE;
}