Charles Ogar

Joined

50 Experience
0 Lessons Completed
0 Questions Solved

Activity

I’m not sure exactly how to word the functionality of what I’m trying to build but let to give it a shot here to see if someone has built or seen something similar

I’m working on a web app that will basically be a huge database of dance events across the world. So I naturally would need to be able to create location column to the events database I’m building. I’m not sure the best way to go about it.

The functionality of what I’m trying to replicate exists on Airbnb. Airbnb has a giant list of their listings across the world. From their search bar you can search any city, state, country, or continent and there’s an autocomplete functionality that matches what was typed in to then filter the listings by that geographic region.

I’ve done some research online with Google Places API and it seems with the Places ID I can get the latlng (latitude and longitude) data of each venue, city, state, country and then continent. I’m not interested to setting up a map view right now, and there’s seems to be a lot of tutorials geared towards the map view with Google API.

I’m looking for creating a database record for my events, being able to extract the needed data for the location that will then open up the possibility of “scalable” filtering via city, state, country, or continent.

If I get the autocomplete function to work on my event creation form, would I then be able to pull data from Google and save that to my database?

Some example queries could be:

  • Show me salsa events happening in Berlin
  • Show me west coast swing events in Japan
  • Show me bachata events in Texas

I’m not sure if I’m using the right terms. any advice or guidance is greatly appreciated! I’d even be willing to pay someone for mentorship to create this function in my Rails app.