Comments (7)
Or just a straight-up location suggester.
I've been writing (edited: riding) the bus a lot lately.
When you go to the MITS trip planner, it has the official names of buildings & buildings as listed by Google as suggested locations when you begin entering the names of locations. ^ Like that. But, OK, let's say we can't or don't want something like this where it's Google-powered, we could take the time to create a separate locations
table with slugs, addresses, etc. there for the auto-populating.
from muncie-events3.
The current version of the site already auto-suggests locations when you start typing, but based on all of the location names that are already in the database (so it doesn't help with any new locations). The theory is that if it's at a location that's familiar to the site, people would be more likely to accept the suggestion instead of typing in a variation. And if it's the first event that's ever been posted for a particular location, then there's no canonical location name to favor and we might as well let them enter whatever they want.
The current location auto-suggestion thing also automatically populates the address field, I think with the address for the most recently-posted approved event with the same location name.
I think there's still room for a pros and cons debate about using Google for this, though.
from muncie-events3.
So, here's a thing we can do: locations
becomes its very own table, not just a field. So the table would look something like this: id
, name
, address
, neighborhood
. This would open the door for us to map the events, and to sort locations & events by neighborhood. I quite favor this idea. It also means we can input location names for places around BSU campus, etc. and it will (HOPEFULLY) prevent users from inputting superfluous locations. For now the 3.x version is an improvement but I'd like to work towards this.
from muncie-events3.
- Are there any possible situations where there could be more than one address with the same location name? (like a business that anticipates moving to a new location in the future)
- Who inputs
neighborhood
?
from muncie-events3.
- Yes, that's actually a really good point... lots of businesses have changed locations even since I came to Muncie. So that will need to be dealt with.
- I just assumed I would but that does sound like a lot of work *shrug*
from muncie-events3.
Ideally, we automate anything that can be automated. On account of duh.
A cursory search suggests that the Google Maps API might provide neighborhood data for whatever coordinates you feed it, and that there are other APIs that definitely do. So we'd probably be able to work up a solution that automatically populates a neighborhood
field, but only if address
is resolvable. Using the Google Maps API to provide suggestions in the address
field might help steer people away from "UMM IT'S ACROSS THE STREET FROM THE MORMON ZOO OVER IN THE SCRUBLANDS".
from muncie-events3.
THE MORMON ZOO OVER IN THE SCRUBLANDS
what are you trying to say about my scrublands???
But no for real, OK, the Maps API sounds good.
from muncie-events3.
Related Issues (20)
- Remove commented-out code HOT 1
- Replace abandoned JsHelper
- Error loading more events when there are no events
- /tags/past looks up both past and future tags
- Daylight saving time offset needs calculated with time
- Refactor redundant DB calls in EventsTable::getStartEndEvents()
- Date picker visually broken
- Facebook app needs a new API secret
- Overhaul password reset process
- Remove unneeded font files
- Switchover checklist
- Use new icons
- Redundant search-by-tag prompt
- Tag suggestions
- Validate character encoding
- Mailing list overhaul
- Overhaul front-end dependency management
- Title correction-suggester
- Add meta pagination tags
- Feature: Venue managers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from muncie-events3.