Click here to Skip to main content
13,357,380 members (67,823 online)
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 6:08am
Updated 12-Oct-17 11:49am
v2

1 solution

Rate this: bad
 
good
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.
  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


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

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