How does app find the status of users by city?

  mongodb, question

To enable each user to check the status of users in their city, Android uses Baidu map and Ios uses Gaud map. I want to know whether the client obtains the geographic location (in some way) when users send a status, and then the server saves it. When users check the status of their city, the server searches according to the geographic location field of the database. Would that be the point of view?
The background database is mongodb and uses expressjs.
I know mongodb has a geographic location function. Can users view the status of their city based on this?

Well, there’s no need to bother. When users register, you can let them choose their city. ? ?