tags:

views:

242

answers:

1

Starting with iPhone 3.0, web pages can access the location data of the iPhone (Google Latitude does that).

Can anyone provide the code (JavaScript I assume) to do that?

Thanks

+1  A: 

Alocola is an application that allows web apps to access GPS coordinates on pre-3.0 iPhones

Starting with 3.0, you can use the Geolocation Javascript API (from http://stackoverflow.com/questions/221592/geolocation-api-on-the-iphone).

squelart