Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I currently develop a real-time tracking system for my final year project. to track current location I have to use GPS tracker device. but I don't know how can I retrieve current location of the vehicle using javascript and display it's into HTML. can u give me suggestion what GPS tracker can I use to retrieve location using js?


What I have tried:

I just need to know how to retrieve data location using js
Posted
Updated 12-Oct-17 10:49am
v2

1 solution

I may be wrong or out of date, but I think that would fall under "things we don't let browsers do for security reasons" and you won't be able to connect to the device with JavaScript.

You may need to have a server component accessing the device and serving data to the web page via a web service that you can call from JavaScript.
 
Share this answer
 
Comments
Member 13461603 13-Oct-17 2:17am    
alright, ben.if I have server and GPS tracker device. how can I make connections between them?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900