dxe / adb

Activist Database Project
11 stars 5 forks source link

Geocoding #165

Open jakehobbs opened 2 years ago

jakehobbs commented 2 years ago

Currently the coordinates for a geo-circle are automatically calculated on save based on the coordinates of the activists in that circle.

The activists table has lat/lng columns, but they are currently never updated automatically. This should ideally happen whenever an activist is saved IF they are a chapter member or organizer and their address, city, state, or zip code is changed.

The Google Places API should be used to perform the geocoding. We already have an API key set in prod: https://github.com/dxe/adb/blob/49f2d38c15cb982a450436ea78f2ea3f04acf42b/config/config.go#L67

Additionally, it would be nice to get the coords for Chapters on-save based on their city name & country so that users (the international coordination working group) do not have to manually find and enter them.

jakehobbs commented 2 years ago

Activist lat/lng was last manually imported on June 19.

jakehobbs commented 2 years ago

Once this is done, we should also create a page that shows a map of all chapter members that is only accessible to admins.

jakehobbs commented 8 months ago

I think this was done? But making the page would still be nice?