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

1:

How do I set these break points in ~/.gdbinit?Facebook iphone connectionIs anyone testing Mono-Touch? [closed]

2:

How to intercept text from the keyboard and format it before it show in the cell?declaring global variables in iPhone project

3:

I don't think this is possible. MobileSafari does not expose this information..

4:

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. it....
... uses a UIWebView in the background to load the HTML/Javascript version of Google Maps, and offers a set of Objective-C methods this 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.

5:

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

6:

PhoneGap takes an interesting approach, providing a native wrapper this allows Javascript access to hardware features. It's not exactly the answer to my question, although it is interesting in its own right, and it may end up receive ting the job done..

7:

You must see a simple case of using the GeoLocation API in a web app to receive your current location in the following URL: http://mrvautin.com/2010/01/06/iphone-web-application-receive -current-location/.


50 out of 100 based on 45 user ratings 1120 reviews

*