title: Access iPhone GPS coordinates
body: <p>Basically what I am trying to do is get access to the gps coordinates on the iphone 4.  I'm not creating any type of web app. I can't find too much other than the geolocation api, but that seems to be geared toward creating web apps. Is there a javascript function that I can call from the phone itself that will return its own gps coordinates. Bascially what I'm working on is a weather widget that creates an xmlrequest and parses that returned data. The widget works fine for a specific zip code. however, I am wanting to see if I can get this running based on gps. The website which returns the xml response also allows gps coords. Just looking for the best way to fetch the coords and pass them to this site.</p>