views:

2351

answers:

5

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: 

http://www.instamapper.com/iphone

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
A: 

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

See arisgames.org for the project.

A: 

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

Can it get GPS location continuously?

Sam
+2  A: 

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

http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/GettingGeographicalLocations/GettingGeographicalLocations.html

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