mocnik-science / osm-python-tools

A library to access OpenStreetMap related services
GNU General Public License v3.0
441 stars 48 forks source link

Cache location in windows #38

Closed gthieleb closed 3 years ago

gthieleb commented 3 years ago

I am currently using the osm python tools in windows and want to make use of the caching functionality.

First Question. Does the caching also works for reverse nominatim requests?

Where is the cache location in windows? My %USERPROFILE% contains a .cache folder but this does not has any osm data.

image

mocnik-science commented 3 years ago

Dear @gthieleb, I am sorry to provide an answer first now. I can confirm that caching also works for reverse Nominatim requests. You can test this easily by deleting the cache folder and then running such a request – the cache folder will be created again and a cache file will be added to this folder. Regarding your question about the location of the cache folder. The %USERPROFILE/.cache folder is not the right one. In MacOS and Linux, the cache folder is in the folder where you run the script. The same should apply to Windows, but as I do not have a Windows to test at hand, I cannot confirm this. (Other users have though confirmed this, and I was hoping that some other user who uses Windows would do so here ...) If you cannot find the cache folder, please check in which folder you are running your script. I hope that this answers your questions. If not, please reopen. Best