Giter Club home page Giter Club logo

Comments (7)

ericadeefox avatar ericadeefox commented on June 24, 2024

Or just a straight-up location suggester.

I've been writing (edited: riding) the bus a lot lately.

image

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.

PhantomWatson avatar PhantomWatson commented on June 24, 2024

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.

ericadeefox avatar ericadeefox commented on June 24, 2024

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.

PhantomWatson avatar PhantomWatson commented on June 24, 2024
  • 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.

ericadeefox avatar ericadeefox commented on June 24, 2024
  • 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.

PhantomWatson avatar PhantomWatson commented on June 24, 2024

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.

ericadeefox avatar ericadeefox commented on June 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.