I was wondering if I could access the iPhones Core Location framework over a website?

My goal is to build a webapp/website that the iPhone would browse to, then upload its current GPS location. This would be a simple site primary for friends/family so we could locate each other. I can have them manually enter lng/lat but its not the easiest thing to find. If the iPhone could display or upload this automatically it would be great.

I don't own a Mac yet (waiting for the new Mac Book Pro) but would like something a little more automatic right now. Once I have the mac I could download the SDK and build a better version later. For now a webapp version would be great if possible. Thanks.

+1  A: 
Mike McMaster
+1  A:

iPhone App store

While this may not directly answer your question, there are quite a few iPhone apps that already do this kind of thing with GPS. Instamapper is the first one I pulled up from the app store, but I'm sure you could find something to fit your needs.

Ben Robbins

We built a really thin iphone client app that simply calls a predefined .js file on our site. Works like a charm.

See for the project.


David, What application on would do this? Is it available in AppStore?

Can it get GPS location continuously?

+2  A: 

Why not simply use W3C GeoLocation API available in mobile Safari? This will work on ipod touch as well (suburb precision).

It's literally 10 lines of code and the javascript will work without change on Firefox 3.5. Far easier than scrape some third party website.

Igor Zevaka