savoirfairelinux / sous-chef

Sous-Chef is a web application to help organizations to plan and deliver meals, and to manage clients files.
GNU Affero General Public License v3.0
66 stars 45 forks source link

Automate geolocation #769

Open kousu opened 7 years ago

kousu commented 7 years ago

@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.

lingxiaoyang commented 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?