I first wanted a quick way to get my current latitude and longitude while looking at Heavens Above. It’s a great site that allows you to find visible satellites based upon your current location. Here’s the bookmarklet that I created:
Copy this link to your bookmarks and when accessed on an iPhone or location-aware web browser, it will directly load the site with your current location entered!
null. The website only supports numeric values, so
z=z?z:0 replaces the
null with a
0. Secondly, the website needs the local timezone, but unfortunately it only accepts a small subset of the three letter codes (and not the numeric offset from UTC). Even worse, the daylight savings version of the code (EDT/CDT/MDT/PDT) are unsupported – the site just assumes that you follow the trend (sorry Arizona). So I grab the code from January 1, 2009 (when daylight savings is not in effect), and parse the three letter code from that string.
For most sites, you’d only need something of the form (The NOAA’s weather forecast, for example):