0

I'm working on a project that involves real time tracking. I'm using html5 geolocation API and I'm stuck where users should locate others. Mine is not storing the lat,lng of the user in a database. Now my question is can I continue my project without database?

Krishna Prashatt
  • 631
  • 9
  • 18

1 Answers1

0

Yes you can. When you receive the GPS data, you could directly send it to all recipients. Therefore, you dont have to store it in a database. To be able to create channels with clients that stay open over a longer time, HTTP wont work, you will have to use WebSockets instead. A famous implementatoon for nodejs is https://socket.io

Jonas Wilms
  • 132,000
  • 20
  • 149
  • 151
  • thanks for the answer 1 more question is there alternative solution besides Websockets i saw this question https://stackoverflow.com/questions/3305225/ using server-side scripting is it possible i'd like to avoid using your suggestion seems hard kinda sucks at programming :/ – Jason Steve Apr 25 '18 at 07:00
  • @jason that only works if you wanna see your own position. – Jonas Wilms Apr 25 '18 at 08:38