Where to start with this weather app idea?

Hi,

I am trying to make a web app; where you can put in your current location, select your ideal temperature (weather) and then press go and it will show you the closest locations to you with the weather conditions you’re looking for.

Is bubble capable of such a thing, if so - can someone point me in the right direction to get started? I’ve done all the tutorials and watched a few youtube videos on API’s but cant seem to figure it out.

Hey @fredh172,

To me, this definitely seems like something Bubble can do with an external API that has the temperatures of different places around the world.

Hey @fredh172,

This page lists a bunch of weather APIs you could try: https://rapidapi.com/search/weather

Finding the weather for given locations would be pretty straightforward. The tricky bit would be finding a way to query all nearby locations. If it were me, I’d probably start like this:

  1. Let the user enter a location (maybe later auto-detect location, but skip this for now) and a weather type (this could be a dropdown menu)
  2. Find a way to collect all nearby locations, at a hard-coded radius (e.g., 50 miles or 100km)
  3. Find an api that can return a list of locations based on latitude-longitude, and search using location input from (1)
  4. Filter results from (3) to be only those locations matching chosen weather from (1)

So I’d probably expect to use 2 APIs:

  1. an API for weather (e.g., https://rapidapi.com/community/api/open-weather-map)
  2. another one to retrieve a list of cities, based on the chosen city (e.g., https://rapidapi.com/natkapral/api/world-geo-data, with their /cities/nearby endpoint)

Let me know if this is helpful!

There may be a simpler way … there usually is lol. But this is what I’d start with.
Cheers