I would put them all back under a topline tag called Users. This will make it easier to access just this data, and reduce confusion with any other topline tags with different content that you may wish to add.
If you are doing a school bus app, ask yourself how to track a bus that has not yet picked up any students.
Did you mean same first structure ?
Use projectbucket as users then put inside it user
Yes, like you had before
Good i I did this befor
But in screen login
When student login
how i can get values for this student who logged in?
And then how i can get Latitude and Longitude for his bus ?
This is a different question....
Assuming the student is signed in to the app, and they are on the bus, they should be getting their latest position. Their app should then be updating their firebase data with their latest position (LocationChanged event)
Can you put store value code ?
Sorry, do not understand what you mean?
Did you know you are allowed to add extra Firebase components with different Buckets (Users, Buses, Drivers, etc.) to facilitate tracking those separately?
Rename the components in the Designer to remind you of what they manage (FireBaseUsers, FireBaseBuses, etc.)
Can you explain with example ?
Unfortunately, I have none in stock.
The student stay at home and he is waiting his bus
That i mean he need to track his bus to know where is his bus now near to his home or far like ubar app
Getting the latest position for his bus but the student at home waiting his bus
How do you intend to get bus coordinates in real time ?
The bus driver also has the app ?
Yes
App for bus driver used for store driver bus location in firebase when his location changed
And i need when the student login app
Direct get location of his bus by get bus Latitude and Longitude for this student
As @ABG has indicated, you need a separate data structure for storing bus locations. This should not be in Users
, possibly call it Buses
.....
Can you explain by example
From store and get data
The idea app for drivers and app for student
The app for driver store his location in firebase when location sensor changed event
And in student app
Student login then get location of his bus to track it