Search code examples
androidfluttergoogle-mapsgeolocation

what is the best way to send phone(s) location from a mobile app to the server?


I have web app that should receive phones location in real time from mobile app and display them on google Map. Obviously, if the phone moves , I want to show that the phone is moving in real time on the map

web app: front end: reactjs, backend: Nodejs, database :MYSQL,

Mobile app: flutter

I will have around 70-80 mobile users who will send their locations in real time to my web app

  1. How to send the location of the phone to the server?

  2. What is the best way to handle all these locations on my web application ?

Please take into your consideration my application performance and scalability


Solution

  • It depends on what sampling you need and what you plan to use it for. WS is the way to go.

    If you plan to store the data then for scalability I suggest a nonSQL approach (Firebase is a good suggestion).