django-easy-maps icon indicating copy to clipboard operation
django-easy-maps copied to clipboard

Occassional failure to show maps even after successful geocoding

Open smarshy opened this issue 10 years ago • 1 comments

I am using Easy maps to display user entered location on a web page and doing a pre-check by calling the geocoder to verify if the location can be decoded successfully. However, I run into problems at times when the map shows blank area saying geocoding error, which shouldn't happen as I am calling easy map tags only if geocoding is successful In these cases, there is a failure to set the computed address (fluctuation in internet connection or internal issue.... not so sure) but the entry is stored in the database with blank values for latitude, longitude. Once, it is stored, even after trying repeatedly it shows the same blank value for map as it is accessing db by default, it seems.

foggia stored in database

Once the record is deleted, only then the map is shown. Is it possible to avoid saving the record altogether if computed address is not set?

smarshy avatar Apr 08 '16 03:04 smarshy

@smarshy there is hidden option "EASY_MAPS_CACHE_TIMEOUT" (600 seconds by default) After this time, the result will be considered stale and will be re-fetched...

bashu avatar Mar 29 '19 07:03 bashu