Problem with the range
Closed this issue · 1 comments
I’m writing and testing a script and I realized that probably there’s a problem with the radius parameter in the client.get_items function. I tried many times to change the radius, from 10 to 15, then to 30 but the results are always the same even if in a larger radius lots of more shops are currently active. I don’t understand if the problem is in my code or in the library. If I change the other parameters (latitude and longitude) everything works as expected.
Apparently changing the order of the parameters it works. I copied the code example from the readme file and it doesn’t work.
items = client.get_items(
favorites_only=False,
latitude=48.126,
longitude=-1.723,
radius=10,
)
Changing it into the following code it works:
items = client.get_items(
latitude=latitude,
longitude=longitude,
radius=int(rad),
favorites_only=False,
)