Pynoramio

class pynoramio.Pynoramio
get_all_pictures_cursor(lat_min, lon_min, lat_max, lon_max, picture_size=None, set_=None, map_filter=None)

Generator to get all available photos for a given bounding box

Parameters:
  • lat_min (float) – Minimum latitude of the bounding box
  • lon_min (float) – Minimum longitude of the bounding box
  • lat_max (float) – Maximum latitude of the bounding box
  • lon_max (float) – Maximum longitude of the bounding box
  • picture_size (basestring) – This can be: original, medium (default), small, thumbnail, square, mini_square
  • set (basestring/int) – This can be: public, popular or user-id; where user-id is the specific id of a user (as integer)
  • map_filter (bool) – Whether to return photos that look better together; when True, tries to avoid returning photos of the same location
Returns:

Yields individual dicts of photos

get_from_area(lat_min, lon_min, lat_max, lon_max, picture_size=None, set_=None, map_filter=None)

Get all available photos for a specific bounding box

Parameters:
  • lat_min (float) – Minimum latitude of the bounding box
  • lon_min (float) – Minimum longitude of the bounding box
  • lat_max (float) – Maximum latitude of the bounding box
  • lon_max (float) – Maximum longitude of the bounding box
  • picture_size (basestring) – This can be: original, medium (default), small, thumbnail, square, mini_square
  • set (basestring/int) – This can be: public, popular or user-id; where user-id is the specific id of a user (as integer)
  • map_filter (bool) – Whether to return photos that look better together; when True, tries to avoid returning photos of the same location
Returns:

Returns the full dataset of all available photos