OhmSpectator / streetviews-grabber

A script that grabs Google Street View for a city.
Other
7 stars 1 forks source link

[OSM] Cash the responses #14

Open OhmSpectator opened 1 year ago

OhmSpectator commented 1 year ago

Overpass API requests take a long time to be handled, but the responses are not changed that often. Try to cache them.

OhmSpectator commented 1 year ago

https://github.com/requests-cache/requests-cache

OhmSpectator commented 1 year ago

The most problematic request, the Overpass API is done now via overpy package. So we cannot control the caches with the requests_cache package there. Check the package itself or try to fix it and propose a solution with caching to the overpy master.

OhmSpectator commented 1 year ago

https://python-overpy.readthedocs.io/en/latest/

OhmSpectator commented 1 year ago

Another option would be just to serialize the responses per query string.