Using a GPS sensor with Google Maps

1,438 views
Skip to first unread message

Darshan

unread,
Feb 23, 2010, 4:10:28 PM2/23/10
to Google Maps JavaScript API v3
Hello,

We are trying to do this for a school project. Please let us know if
it is feasible:

Using a GPS receiver and the Google Maps API V3 we are basically
trying to centralize our location based on our current location driven
off the GPS sensor and then get directions to some specified
locations.

We have turned the sensor parameter to true when initializing the map.
However, the map does not centralize to our current GPS coordinates.
What are the correct parameters to use with a GPS USB receiver? Are
there examples that you can point to using API v3 and a GPS receiver?

Thanks,
Darshan

Esa

unread,
Feb 23, 2010, 8:47:21 PM2/23/10
to Google Maps JavaScript API v3
The 'sensor' parameter in api script url parameters is a non-technical
parameter for statistics. It does not make the api to read any
external hardware.

Browsers cannot read external hardware of standard computers at all,
but there is a standardized navigator.geolocation object that some
modern browsers support.
http://code.google.com/apis/maps/documentation/v3/basics.html#Geolocation

Location is based in a database of WiFi carriers. iPhone and Android
phones use their internal GPS instead.

If your GPS has a software that writes its data in a file, you can try
to read that file by JavaScript.

Darshan

unread,
Mar 1, 2010, 5:39:03 PM3/1/10
to Google Maps JavaScript API v3
Thanks. That is what we figured. So basically on a time interval we
will write to a file and have the google maps access it via
javascript.

On Feb 23, 8:47 pm, Esa <esa.ilm...@gmail.com> wrote:
> The 'sensor' parameter in api script url parameters is a non-technical
> parameter for statistics. It does not make the api to read any
> external hardware.
>
> Browsers cannot read external hardware of standard computers at all,
> but there is a standardized navigator.geolocation object that some

> modern browsers support.http://code.google.com/apis/maps/documentation/v3/basics.html#Geoloca...

Reply all
Reply to author
Forward
0 new messages