Click here to Skip to main content
13,632,925 members
Rate this:
Please Sign up or sign in to 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 12-Oct-17 5:08am
Updated 12-Oct-17 10:49am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web01-2016 | 2.8.180712.1 | Last Updated 12 Oct 2017
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100