Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geocoding #165

Open
jakehobbs opened this issue Sep 8, 2021 · 3 comments
Open

Geocoding #165

jakehobbs opened this issue Sep 8, 2021 · 3 comments
Assignees

Comments

@jakehobbs
Copy link
Member

jakehobbs commented Sep 8, 2021

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:

GooglePlacesAPIKey = mustGetenv("GOOGLE_PLACES_API_KEY", "", false)

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 jakehobbs self-assigned this Sep 8, 2021
@jakehobbs
Copy link
Member Author

jakehobbs commented Sep 8, 2021

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

@jakehobbs
Copy link
Member Author

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
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant