alexis-mignon / python-flickr-api

A python implementation of the Flickr API
BSD 3-Clause "New" or "Revised" License
367 stars 108 forks source link

How do I list images by latitude and longitude of a place? #124

Open Teslestien opened 2 years ago

Teslestien commented 2 years ago

Hi, so I was trying to use this api to get images of a certain latitude and longitude coordinates, but flickr_api.Place.findByLatLon and passing a list of the coordinates to it but for some reason it says takes 0 arguments but 1 was given. This is the error it gives if I don't give an argument

Traceback (most recent call last):
  File "d:\Game Dev\Codes\Misc\misc.py", line 231, in <module>
    place = flickr_api.Place.findByLatLon()
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\flickr_api\reflection.py", line 294, in static_call
    r = method_call.call_api(method=flickr_method, **method_args)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\flickr_api\method_call.py", line 149, in call_api
    raise FlickrAPIError(resp["code"], resp["message"])
flickr_api.flickrerrors.FlickrAPIError: 1 : Required arguments missing

What am I doing wrong? I new to this so please be a bit specific.