How to have a realtime map tracking in leaflet.js

I tried implementing the map tracking for the user; it works well, but the destination coordinate is inaccurate. The destination is random and not accurate. I want it to be responsive so that when the user inputs their location, the system will provide a direction and routing that will lead them to the user’s locationThis is my website