Open pingskills opened 8 years ago
So this would be something users enter if they want their location to be in the system?
They could enter a city, and then we could probably grab lat/long from Google Maps.
I suspect people would want to subscribe to competition notifications in more than one location.
@larspetrus - Yes, we'd let users enter this information if they wanted their location recorded. I was thinking of copying the functionality that is used when entering a location for a competition. Here's a screenshot of that functionality:
Aha. If it's working, that answers much of the design questions.
My only note the is that I'd put the locations in a separate table. Both to enable several different locations per user, and to keep the User table/object uncluttered.
Location information would help organisers identify new locations to host competitions. It could also help with improving participation and retention in certain areas.
I'm assigning this to @pedrosino. Step one should just be to add the table @larspetrus suggested in a database migration. In later PRs, we can add a UI to let users input this data, and actually start doing stuff with this information.
This would be useful for a number of purposes, such as displaying the location of delegates, and allow us to notify users of nearby competitions as discussed in #114 (see also #256).