Home » Android » Android – Structure of Firebase database

Android – Structure of Firebase database

Posted by: admin November 1, 2017 Leave a comment

Questions:

I am developing an android application where older kids can pick up younger kids and walk to school. With the application the authenticated (email and password) younger kid can choose between different addresses to get picked up. The older kids can click on a route (polyine) and the different addresses (markers) associated with that route will show up on the map.

What I want to do is to add the route that the older kid picked in my database. So when I query the database on behalf of the younger kid, the information: “name of address”, “time”, and “name of older kids” that have picked the route shows up. I am confused on how I should design the database.

As of right now my realtime database looks like this:

enter image description here

Answers: