bestserversio / bestservers-old

Find the best game and Discord servers for you!
7 stars 1 forks source link

Parsing Locations #2

Open gamemann opened 1 year ago

gamemann commented 1 year ago

Each server will optionally have a location set that tells users where the server is located. In the database, there are two columns location_lat and location_lon under the servers table. These represent the server's latitude and longitude coordinates.

Front-end wise, I'd like a form input (text) that allows users to set the server's location. Auto-complete for city, state, and country names would be a nice touch as well and updates on new input.

Additionally, the server browser will be sorted by location by default.

This issue was created to initiate discussion and planning on implementation for this feature. For example, what PHP/Laravel libraries can we use to convert manual inputted addresses to latitude and longitude coordinates?