[OpenLayers-Users] connect ol-mobile to interne gps-device

Nicholas Efremov-Kendall n.e.kendall at gmail.com
Sun Jun 26 16:55:12 EDT 2011


Hi Jan,

this tutorial isn't bad,
http://mobile.tutsplus.com/tutorials/mobile-web-apps/html5-geolocation/ there
are also a couple of hits off of google if you search html5 geolocation and
openlayers that are helpful.

Essentially, what you do with the results of the
navigator.geolocation.getCurrentPosition is up to you, you can either pass
this to a marker, or vector layer, suck it into a dbase and spit it back to
OL in your choice of formats.

I found this tutorial helpful, you'll have to adapt it to OL since it uses
Google Maps, but functionally this will get your head straight. This uses a
YQL for backup geolocation.

Take a look at the following overview as well. This has code that deals with
the API's of a number of mobile devices as well and will use google's gears
for backup geolocation by IP.

happy hunting!

On Sun, Jun 26, 2011 at 2:21 PM, Tue Topholm <tt at sugee.dk> wrote:

> Hi Jan
>
> Have a look at this:
>
> http://dev.w3.org/geo/api/spec-source.html
>
> --
>
> Med venlig hilsen / Kind regards
>
> Tue Topholm
> Sugee
> Tlf: +45 32 13 32 32
> W: http://www.sugee.dk
>
>
>
> 2011/6/26 Jan Tappenbeck <osm at tappenbeck.net>:
> >
> >
> >  hi !
> >
> > did anybody know a way to connect openlayers to the internal gps-device
> of a
> > iphone / android /other smartphone ??
> >
> > regards Jan :-)
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/openlayers-users
> >
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110626/104d6096/attachment.html


More information about the Users mailing list