thewca / worldcubeassociation.org

All of the code that runs on worldcubeassociation.org
https://www.worldcubeassociation.org/
GNU General Public License v3.0
328 stars 175 forks source link

Add Latitude and Longitude to users #732

Open pingskills opened 8 years ago

pingskills commented 8 years ago

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

larspetrus commented 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.

pingskills commented 8 years ago

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

location

larspetrus commented 8 years ago

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.

TimMcMahon commented 7 years ago

Location information would help organisers identify new locations to host competitions. It could also help with improving participation and retention in certain areas.

jfly commented 6 years ago

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.