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?
Asked
Active
Viewed 147 times
0

Krishna Prashatt
- 631
- 9
- 18

Jason Steve
- 5
- 4
-
1You can try using sockets https://www.npmjs.com/package/gps-tracking-maps-socket-io. I don't know whether its feasible for your project requirement – souravlahoti Apr 25 '18 at 04:58
-
is there a way that doesn't involved third party apps/software? – Jason Steve Apr 25 '18 at 05:06
-
1You can use your own implementation of sockets, you can use the package as ref and check the code to understand how it works – souravlahoti Apr 25 '18 at 05:08
1 Answers
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
-