Open kousu opened 7 years ago
@kousu I see your point. I would keep the client-side geolocator for admin purposes, but add a server-side batch geolocator.
I think a manage command will be sufficient. It should find the non-geolocalised clients, try to find their GPS coordinates and report errors.
Do you think a pure command-line utility is sufficient?
@JeanFrancoisFournier and I took a first pass at https://sous-chef-test.santropolroulant.org with the semi-real data, and found that we are stumped because there are over 1000 client records and none of the maps work. I suspect this is because none of the geolocations have been run for them.
I would like to propose
a. geolocations should be run server-side instead of client-side b. geolocations should be runnable with a
python3 manage.py ...
command; or should run at django boot; or should run on a background thread at django-boot.