0

I want to write location based app, where people can search for locations (bars, pizzas, shopping places) and can create meetups for these locations. My approach so far - I fetch locations from the yelp api using this endpoint which returns list of locations/businesses in the following format:

"businesses": [
    {
      "rating": 4,
      "price": "$",
      "phone": "+14152520800",
      "id": "E8RJkjfdcwgtyoPMjQ_Olg",
      "alias": "four-barrel-coffee-san-francisco",
      "is_closed": false,
      "categories": [
        {
          "alias": "coffee",
          "title": "Coffee & Tea"
        }
      ],
      "review_count": 1738,
      "name": "Four Barrel Coffee",
      "url": "https://www.yelp.com/biz/four-barrel-coffee-san-francisco",
      "coordinates": {
        "latitude": 37.7670169511878,
        "longitude": -122.42184275
      },
      "image_url": "http://s3-media2.fl.yelpcdn.com/bphoto/MmgtASP3l_t4tPCL1iAsCg/o.jpg",
      "location": {
        "city": "San Francisco",
        "country": "US",
        "address2": "",
        "address3": "",
        "state": "CA",
        "address1": "375 Valencia St",
        "zip_code": "94103"
      },
      "distance": 1604.23,
      "transactions": ["pickup", "delivery"]
    },
    // ...
  ],
  "region": {
    "center": {
      "latitude": 37.767413217936834,
      "longitude": -122.42820739746094
    }
  }
}

When I display the different locations to the user, he/she has the opportunity to create meetup. I store meetup information in firebase. When a user clicks on a different business/location I want to fetch all meetups which have been created for this location. To do so, in my firebase "meetup" collection, I keep the business id so that I can connect the different meetups with the corresponding business, which I am fetching from yelp.

Is this approach good enough? Is this the right way to do it, in order to solve such kind of problems?