Accessing location information on iPhone from web application

Accessing location information on iPhone from web application

Is there any way for a web application to access the location data of an iPhone without the installation of an additional iPhone client app?

If not, the next best thing would be if any can recommend an existing native app, preferably free to the end user and as lightweight as possible, that does expose this information to Mobile Safari.

Using an existing C++ engine on the iPhone


How do I set these break points in ~/.gdbinit?

Facebook iphone connection

Is anyone testing Mono-Touch? [closed]


How to intercept text from the keyboard and format it before it show in the cell?

declaring global variables in iPhone project


I don't think this is possible.

MobileSafari does not expose this information..


There is not.

At the very least you will have to implement your own UIWebView based application, read the location from CLLocationManager and inject it into the WebView.. A good starting point is the iPhone-google-maps-component.


uses a UIWebView in the background to load the HTML/Javascript version of Google Maps, and offers a set of Objective-C methods that mimic a subset of the original Javascript methods for controlling the map.

It currently supports setting the center location, and zooming & panning using the touch interface.


For jailbroken phones Locatable is exactly what you describe, it is available on cydia and very simple to integrate server-side..


PhoneGap takes an interesting approach, providing a native wrapper that allows Javascript access to hardware features.

It's not exactly the answer to my question, but it is interesting in its own right, and it may end up getting the job done..


You can see a simple example of using the GeoLocation API in a web app to get your current location in the following URL:

50 out of 100 based on 45 user ratings 1120 reviews