what3words / w3w-python-wrapper

Python wrapper for the what3words API
https://docs.what3words.com/api/v3/
MIT License
78 stars 14 forks source link

Way to batch convert in pandas without multiple API requests? #14

Closed tadisdef closed 2 months ago

tadisdef commented 1 year ago

Hello!

I have been working with converting what3words addresses to coordinates using python inside the software Alteryx. Alteryx converts my excel file (with a column of What3Words addresses) to a pandas dataframe and then I use this wrapper and for loop to convert each of them. Is there a way to batch out the whole column without using tons of API requests?

Asking because I made 104 API requests in my trial and error phase yesterday.

ManuCiao commented 2 months ago

@tadisdef Unfortunately, the what3words API does not yet offer a batch processing endpoint to convert multiple addresses in a single API call, but there are strategies to minimise unnecessary API calls.

Strategies to Reduce API Requests:

1. Cache API Results:

2. Check for Duplicates Before Sending Requests: