User avatar
johan
GpsGate
Posts: 14372
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: Get GPS position from a browser using javascript

Thu Aug 07, 2008 1:55 pm

It is not in the pipeline, but we can consider it if you sponsor the development. In that case contact us here for a further discussion:
http://franson.com/gpsgate/support.asp

Regards,
Johan

Franson Support

trchhetri
Posts: 2
Joined: Tue Sep 23, 2008 1:05 pm

RE: Get GPS position from a browser using javascript

Tue Sep 23, 2008 2:57 pm

Hi johan.. I am having some problem with the gpsgate . I downloaded the windows mobile version few days back and had connected it to my laptop and it did run well fetching the co-ordiantes on my laptop. After few days I tried opening up the gpsgate on my mobile but fails to get the co-ordinates on my mobile inspite of getting the gps signal . With the settings the gps gets the valid position but if I try opening up gps.html it doesnot respond at all. I have checked all the input and output settings as well , so could you please let me know where am i going wrong.

roadofking
Posts: 2
Joined: Wed Oct 08, 2008 6:32 pm

RE: Get GPS position from a browser using javascript

Wed Oct 08, 2008 6:49 pm

Hi
I run the sample(http://franson.com/gpsgate/gps.html) on windows mobile 5.0 . My browser is IE.
I click the button "GPS info" doesn't show the position and time.
but I can see where I am on gpsgate.com(http://apps.gpsgate.com/BuddyTracker/Home.aspx)
how can I make the lng and lat show on the sample page?

User avatar
Fredrik
Posts: 1155
Joined: Fri Mar 02, 2007 1:04 pm
Location: Sweden
Contact: Website

RE: Get GPS position from a browser using javascript

Wed Oct 08, 2008 7:59 pm

@roadofking:
The browser needs to support JavaScript (please see "Requirements" in the post above). Try Opera Mobile for example.

Regards,
Fredrik

Franson Support

roadofking
Posts: 2
Joined: Wed Oct 08, 2008 6:32 pm

RE: Get GPS position from a browser using javascript

Thu Oct 09, 2008 8:04 am

Thank you Fredrik
It's does work with opera mobile!

patoch
Posts: 2
Joined: Sun Oct 19, 2008 3:57 am

RE: Get GPS position from a browser using javascript

Sun Oct 19, 2008 4:09 am

Hello,

I am trying GPSGate on a Samsung i900 with Windows Mobile 6.1 and Opera 9.5.
GPSGate is running and says "GPS data with valid position".
Javascript is activated.

When I call the page http://localhost:12175, I get "Erreur Serveur", ie. Server Internal Error - HTTP 500.

Could you tell me what is wrong ?

Many thanks in advance,

Patrick

User avatar
johan
GpsGate
Posts: 14372
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: Get GPS position from a browser using javascript

Sun Oct 19, 2008 11:02 pm

Have you added "GPS in Browser" as Output in GpsGate?

GpsGate does not output the error "Server Internal Error - HTTP 500", so whatever the reason is for that error message is, it does not come from GpsGate.

Regards,
Johan

Franson Support

patoch
Posts: 2
Joined: Sun Oct 19, 2008 3:57 am

RE: Get GPS position from a browser using javascript

Mon Oct 20, 2008 2:35 pm

Hello,
yes I added "GPS in browser" to the output list.
Did you test it on WM 6.1 and Opera 9 ? can there be any limitation from Samsung ?
Is there a place where I should search for error logs ?
Many thanks,
Patrick

thoughtless
Posts: 2
Joined: Tue Oct 21, 2008 5:30 am
Contact: Website

RE: Get GPS position from a browser using javascript

Tue Oct 21, 2008 5:38 am

This is an awesome feature! I'm just looking for more information about the data returned. Is there any documentation anywhere?

I guess the only value I'm unsure of is the groundSpeed. Is this value returned in knots or mph?

Also, just out of curiosity. What are the values such as altitude measured in? Meters, feet?

Again -- GREAT feature! The only suggestion I have is to simply get a JSON response instead of one wrapped in a function and eval. I am reading it through PHP for a project on my computer and it is much easier to read this data stream than a COM and parse sentences!

User avatar
johan
GpsGate
Posts: 14372
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: Get GPS position from a browser using javascript

Tue Oct 21, 2008 12:35 pm

"// double - Speed over ground in meters per second", you find documentation for each variable in the first post above in this thread.

The reason you get it through eval, is that it should work using cross-scripting.

Regards,
Johan

Franson Support

User avatar
Fredrik
Posts: 1155
Joined: Fri Mar 02, 2007 1:04 pm
Location: Sweden
Contact: Website

RE: Get GPS position from a browser using javascript

Tue Oct 21, 2008 5:08 pm

@thoughtless. Please see the reference docs at: http://gpsgate.com/docs/gpsgateservices/jsdoc/index.html

Regards,
Fredrik

Franson Support

thoughtless
Posts: 2
Joined: Tue Oct 21, 2008 5:30 am
Contact: Website

RE: Get GPS position from a browser using javascript

Wed Oct 22, 2008 7:55 am

Originally posted by Fredrik

@thoughtless. Please see the reference docs at: http://gpsgate.com/docs/gpsgateservices/jsdoc/index.html

Regards,
Fredrik

Franson Support


Perfect! Thanks!

Prefect
Posts: 9
Joined: Tue Jan 23, 2007 3:48 pm
Contact: Website

RE: Get GPS position from a browser using javascript

Mon Feb 02, 2009 10:19 pm

Hi All

@Franson: Thanks for the cool "GPS in Browser" feature!

I made a small tech-demo for in-browser-navigation out of the google maps example. You can watch a video of the app here:


http://www.iteconomy.biz/gpsgate/demo/


I always wanted to have a quick and easy reliable navigation tool on my CarPC. Now thats possible! And it works! :-)
It is still under heavy development!


Requirements:
- GPS Gate with "GPS in Browser" activated
- GPS Receiver
- CarPC or Notebook in Car
- Some sort of online-connection (GSM/UMTS, WLAN...)
- A browser

I suggest google Chrome or better Iron (the same, only without the googe-sniffing stuff) because of the fast jscript implementation and the possibility to run the application in a separate fullscreen-window.
http://www.srware.net/en/software_srware_iron_download.php



Features:
- Runs completely in browser with jscript, with live maps from google maps.
- Shows you position and heading on the map. The headings-arrow gets automatically rotated (that was hard work!)
- Shows Speed, Altitude etc. gps Data
- Shows the name of the street you are currently on. Display of house-numbers also supported! (uses google reverse-geocoding, not activated right now)
- Lets you navigate: click on the map and it will show you the fastest path from your current location to the place you clicked.
- Or: type in a location in the text-box and click "navigate". Also restaurant-names, only streetnames and so on can be navigated to (uses google location search)
- Auto-Pans map to display your location in center. Auto-Zooms map according to the speed you are driving.
- Tracks your path you have been driving.
- Displays google maps in full-screen with overlayed transparent controls.



Todo:
- On-Screen keyboard and autocompletion for entering addresses in the navigation-textfield.
- Saving states, addresses and option-values in cookies
- get rid of the annoying "not transparent" heading-indicator. (the red arrow should be transparent, but imagemagick ****s up somehow. help please!)



btw: please don't steal the jscript code, just ask me if you want to use it or modify it by your own.



You can try it out here:

http://www.iteconomy.biz/gpsgate/gmaps.php

(Right now it is a pretty slow server that it is hosted on...)

Please give me feedback! :-)


Regards!
Chris


CarPC on RX-8

User avatar
johan
GpsGate
Posts: 14372
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: Get GPS position from a browser using javascript

Mon Feb 02, 2009 10:33 pm

Really cool!

I would suggest that you post this (very same) information in the main GpsGate 2.6 forum to get some more readers. Here:
http://franson.com/forum/forum.asp?FORUM_ID=23

Regards,
Johan

Franson Support

SCTProject
Posts: 2
Joined: Thu May 14, 2009 8:39 pm
Location: United Kingdom

RE: Get GPS position from a browser using javascript

Thu May 14, 2009 8:49 pm

Hi Fredrik/Johan,
I'm getting the "GpsGate not installed or started" when trying the example web page, which I saved locally as I don't have internet access on the PC I have it installed on. I have added GPS in Browser to Active output.
The Franson tray icon->settings shows "Running OK!" and GPS data with valid position, and netstat -a shows amoungst other data "TCP lap04110:12175 LISTENING" so it all seems to be available, but the javascript does not appear to work.
Any help would be appreciated.
Thanks in advance

Return to “GpsGate for Developers”