views:

11162

answers:

8

Does anyone know whether the iPhone supports or will soon support the W3C Geolocation specification?

I'm looking to build an app for mobile users, but rather than spend the time developing apps for every different platform (iPhone, Android, etc...), I'd much prefer to create a web app that makes use of the W3C Standard.

A: 

Currently, it's not possible to obtain an iPhone's GPS position using just JavaScript APIs. There's been talk that this would be nice, but of course Apple won't comment on future improvements in public.

Ben Gottlieb
W3C Geolocation I believe is supported by Iphone's impending 3.0 upgrade.
hendry
Is there any development on this issue?
Jack
A: 

Btw Geolocation works on the Android G1 mobile device with Gears.

Try my Geolocation demo site.

hendry
I would love to know why I have a negative score on this comment.
hendry
Someone got out of bed on the wrong side?
Rimian
A: 

It is possible to get the GPS information in JavaScript on the iPhone. The QuickConnectiPhone framework exposes this for you as well as acceleration information.

To get this information you will have to install the application on the device however. This framework will soon be available for Android installed applications as well as Nokia.

You can put your application into the framework for each of these devices, compile, and ship.

QuickConnectiPhone is available at https://sourceforge.net/projects/quickconnect/

and if you contact me I can give you pre-release versions for Android and Nokia.

Lee
A: 

Rhodes is promising a "develop-once-run-everywhere" solution. Haven't tried them myself.

Tamer Salama
A: 

This gap is why I developed the Locatable application -- it's essentially a plug-in for iPhone Safari. Currently it's only available for jailbroken phones.

See http://lbs.tralfamadore.com/

+4  A: 

You can now get location from Javascript APIs in the safari browser following the iPhone 3.0 release - we've created a working example @ http://blog.bemoko.com/2009/06/17/iphone-30-geolocation-javascript-api/

Ian
+12  A: 
MyWhirledView
Bummer! This no longer works! See: http://bemoko.com/blog/iphonegeo
Rimian
just I tried your page and it worked for me... FF 3.6
MyWhirledView
+2  A: 

Since iPhone OS 3.0 Safari supports getting geo location. See: Safari Reference Library:Getting Geographic Locations On the other side W3C Geo API specification is still in draft.

jki