<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>KosherJava &#187; Latitude and Longitude</title>
	<atom:link href="http://www.kosherjava.com/tag/latitude-and-longitude/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kosherjava.com</link>
	<description>A weblog about Zmanim, Kosher Coffee (Kosher Java) and other odds &#38; ends</description>
	<lastBuildDate>Fri, 06 Jan 2012 18:28:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Bearing to Yerushalayim and Zmanim Map 3.0</title>
		<link>http://www.kosherjava.com/2011/09/11/bearing-to-yerushalayim-and-zmanim-map-3-0/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=bearing-to-yerushalayim-and-zmanim-map-3-0</link>
		<comments>http://www.kosherjava.com/2011/09/11/bearing-to-yerushalayim-and-zmanim-map-3-0/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 01:53:34 +0000</pubDate>
		<dc:creator>KosherJava</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[Software Dev]]></category>
		<category><![CDATA[Zmanim]]></category>
		<category><![CDATA[Davening]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[Great Circle]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Latitude and Longitude]]></category>
		<category><![CDATA[Rhumb Line]]></category>
		<category><![CDATA[Timezone]]></category>

		<guid isPermaLink="false">http://www.kosherjava.com/?p=1298</guid>
		<description><![CDATA[The Bearing to Yerushalayim and Zmanim Map was recently updated to version 3.0. This new release adds a number of new features to the Zmanim Map version 2.0 update released in March 2010. The main change was updating the Google Map API version from the deprecated v2 to v3. This change increases performance and adds [...]]]></description>
			<content:encoded><![CDATA[<img class="alignleft" src="/images/sepiaMap.jpg" alt="World map" title="World map" />The <a href="http://www.kosherjava.com/maps/zmanim.html">Bearing to Yerushalayim and Zmanim Map</a> was recently updated to version 3.0. This new release adds a number of new features to the <a href="http://www.kosherjava.com/2010/03/14/bearing-to-yerushalayim-and-zmanim-map-2-0/">Zmanim Map version 2.0 update</a> released in March 2010. The main change was updating the Google Map API version from the deprecated <a href="http://code.google.com/apis/maps/documentation/javascript/v2/">v2</a> to <a href="http://code.google.com/apis/maps/documentation/javascript/">v3</a>. This change increases performance and adds much better support for mobile browsers. The upgrade also means that a Google Maps API key is no longer required. This makes it easy to drop it into any site without any configuration (<a href="http://www.kosherjava.com/contact/">contact me</a> for details). <img class="alignright" src="/images/zmanimTabV3.png" alt="Zmanim tab v3" title="Zmanim tab v3" />The technical notes on the original <a href="http://www.kosherjava.com/2008/04/07/technical-information-about-the-bearing-to-yerushalayim-map/">Technical Information about the Bearing to Yerushalayim Map</a> post are still relevant, with very little having changed since the initial implementation. 

The following is a partial list of the new features:
<ul>
<li>A number of additional zmanim in the More Zmanim tab, including <a href="http://www.kosherjava.com/zmanim/docs/api/net/sourceforge/zmanim/ComplexZmanimCalendar.html#getTchilasZmanKidushLevana3Days()">tchilas</a> and <a href="http://www.kosherjava.com/zmanim/docs/api/net/sourceforge/zmanim/ComplexZmanimCalendar.html#getSofZmanKidushLevanaBetweenMoldos()">sof zman kiddush levana</a> (if they occur on that day)
</li><li>A link to download a 12 month Zmanim calendar directly from the map (using the same spreadsheet used in the <a href="http://www.kosherjava.com/zmanim-project/zmanim-calendar-generator/">Zmanim Calendar Generator</a>). Clicking on the link from the Zmanim tab will generate a calendar with most typically used zmanim, while clicking on the link in the More Zmanim tab will download the full set of zmanim. These are available as the Calendar Type option in the Zmanim Calendar Generator</li>
<li>Increased use of <a href="http://jquery.com/">jQuery</a> and jQuery UI for formatting the zmanim tables to better match the site look &amp; feel</li>
<li>Refactoring to make the code more robust and slightly more maintainable</li>
<li>Timezones for all of Israel now display the timezone of Asia/Jerusalem as opposed to the Asia/Gaza returned for parts of Israel by the <a href="http://www.geonames.org/export/web-services.html">GeoNames TimeZone web service</a></li>
</ul>

From a technical perspective there were a number of changes required due to updating the Google Maps API from v2 to v3. These include:

<ul>
<li>v3 no longer supports <a href="http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GMap2.openInfoWindowTabs">tabbed info windows</a>, so the tabs are now implemented using <a href="http://jqueryui.com/">jQuery UI</a></li>
<li>Renaming of a number of classes and functions such as GLatLng to LatLng</li>
<li>A number of functions that were part of API v2 were removed in v3. One example is the removal of <a href="http://en.wikipedia.org/wiki/Radian">radians</a> in the LatLng that had been available as <a href="http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GLatLng.latRadians">GLatLng.latRadians()</a>. These missing functions required for the direction to Yerushalayim calculations are now supported in the Zmanim Map using <a href="http://en.wikipedia.org/wiki/JavaScript#Prototype-based">prototypes</a></li>
</ul>


]]></content:encoded>
			<wfw:commentRss>http://www.kosherjava.com/2011/09/11/bearing-to-yerushalayim-and-zmanim-map-3-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Davening Direction from Alaska</title>
		<link>http://www.kosherjava.com/2011/01/17/davening-direction-from-alaska/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=davening-direction-from-alaska</link>
		<comments>http://www.kosherjava.com/2011/01/17/davening-direction-from-alaska/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 04:12:15 +0000</pubDate>
		<dc:creator>KosherJava</dc:creator>
				<category><![CDATA[Zmanim]]></category>
		<category><![CDATA[Davening]]></category>
		<category><![CDATA[Geodesic]]></category>
		<category><![CDATA[geoid]]></category>
		<category><![CDATA[Great Circle]]></category>
		<category><![CDATA[Latitude and Longitude]]></category>
		<category><![CDATA[Rhumb Line]]></category>
		<category><![CDATA[WGS84]]></category>

		<guid isPermaLink="false">http://www.kosherjava.com/?p=734</guid>
		<description><![CDATA[As mentioned briefly in the &#8220;Why Some Zmanim Never Occur&#8221; post, the Lubavitch Jewish Center of Anchorage, Alaska has an interesting davening direction question. As explained in the &#8220;Bearing to Yerushalayim and Zmanim Map&#8221; (additional technical information is available in the &#8220;Technical Information about the Bearing to Yerushalayim Map&#8221; post), there are two opinions about [...]]]></description>
			<content:encoded><![CDATA[<iframe style="float: left; margin: 10px;" src="/maps/zmanim.html?lat=61.189412&#038;lng=-149.86042&#038;zoom=18&#038;z=n" height="300" width="300" frameborder="0"></iframe>As mentioned briefly in the <a href="http://www.kosherjava.com/2010/06/02/faq-why-some-zmanim-never-occur-developers-beware/">&#8220;Why Some Zmanim Never Occur&#8221;</a> post, the <a href="http://lubavitch.com/centers/detail.html?id=389">Lubavitch Jewish Center of Anchorage, Alaska</a> has an interesting <a href="http://en.wikipedia.org/wiki/Davening">davening</a> direction question. As explained in the <a href="http://www.kosherjava.com/2007/12/30/bearing-to-yerushalayim-and-zmanim-map/">&#8220;Bearing to Yerushalayim and Zmanim Map&#8221;</a> (additional technical information is available in the <a href="http://www.kosherjava.com/2008/04/07/technical-information-about-the-bearing-to-yerushalayim-map/">&#8220;Technical Information about the Bearing to Yerushalayim Map&#8221;</a> post), there are two opinions about the proper direction to face during Tfilah. The <a href="http://en.wikipedia.org/wiki/Mordecai_Yoffe">Levush</a> and others are of the opinion that one should face the <a href="http://en.wikipedia.org/wiki/Rhumb_line">rhumb line</a> direction to Yerushalayim, while the Emunas Chachamim and others are of the opinion that one should face the initial bearing of the <a href="http://en.wikipedia.org/wiki/Great_circle">great circle</a> route. Both of these opinions would clearly use the shortest rhumb or great circle lines to Yerushalayim. As an example, a person standing on <a href="http://en.wikipedia.org/wiki/Mount_of_Olives">Har Hazaisim</a> a mile east of <a href="http://en.wikipedia.org/wiki/Temple_Mount">Har Habayis</a> would not daven east using the logic that continuing east for approximately 21,175 miles<sup style="color: red">[1]</sup> would reach Yerushalayim via <a href="http://en.wikipedia.org/wiki/Circumnavigation#Global_circumnavigation">global circumnavigation</a>, when Har Habayis is just one mile west of him. The <a href="http://www.kosherjava.com/maps/zmanim.html?lat=61.189412&#038;lng=-149.86042&#038;zoom=17">shul in Anchorage</a> is located at a longitude of -149.86042°. The <a href="http://en.wikipedia.org/wiki/Antipodes">antipode</a> of Har habayis is on the -144.764851 longitude line &#8211; 180° of longitude from Har Habayis. People on different sides of this line will daven in opposite directions. Anchorage with a longitude of -149.86042° is 169.69 miles (273.1 km) west of the the -144.764851° longitude line<sup style="color: red">[2]</sup>. For this reason, the shul should daven not east, but west (255.78° from the north, or slightly south-west) if using the common rhumb line calculation, or north (355.67° from the north, or slightly west of north) if using the great circle calculation. Alaska is the only location in the world that has the -144.764851° longitude line cut across dry land, and is therefore the only non-ocean location to face this issue.


<hr />
Notes:
 <span style="color: red">1</span>. Based on a rhumb line <a href="http://home.online.no/~sigurdhu/Grid_10min.htm">along the 31° 50&#8242;</a> <a href="http://en.wikipedia.org/wiki/Circle_of_latitude">circle of latitude</a> as opposed to 24,901 miles at the equator) using a <a href="http://en.wikipedia.org/wiki/World_Geodetic_System">WGS84</a> <a href="http://en.wikipedia.org/wiki/Reference_ellipsoid">Reference ellipsoid</a>.
<span style="color: red">2</span>. Rhumb line calculation as calculated by <a href="http://www.movable-type.co.uk/scripts/latlong.html">Movable Type</a> using the same latitude for both points. The ellipsoidal shape of the earth is factored into this calculation. The short distance means that the 169.66 (272.98 km) great circle distance is very close to the rhumb line distance.]]></content:encoded>
			<wfw:commentRss>http://www.kosherjava.com/2011/01/17/davening-direction-from-alaska/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FAQ: Why Some Zmanim Never Occur (Developers Beware)</title>
		<link>http://www.kosherjava.com/2010/06/02/faq-why-some-zmanim-never-occur-developers-beware/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=faq-why-some-zmanim-never-occur-developers-beware</link>
		<comments>http://www.kosherjava.com/2010/06/02/faq-why-some-zmanim-never-occur-developers-beware/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 02:30:11 +0000</pubDate>
		<dc:creator>KosherJava</dc:creator>
				<category><![CDATA[Software Dev]]></category>
		<category><![CDATA[Zmanim]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Arctic Circle]]></category>
		<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Latitude and Longitude]]></category>
		<category><![CDATA[null]]></category>
		<category><![CDATA[Software Bugs]]></category>
		<category><![CDATA[Twilight]]></category>

		<guid isPermaLink="false">http://www.kosherjava.com/?p=671</guid>
		<description><![CDATA[Question:Why do Some Zmanim Never Occur in Some Locations? (Developers Beware) Answer:While most people realize that the sun may not rise or set in the Arctic and Antarctic Circles (see the Star-K&#8217;s When Does One Pray When There Is No Day), many are not aware that some twilight dips will not occur during part of [...]]]></description>
			<content:encoded><![CDATA[<img class="alignleft" src="/images/EnglandTwilightMap.png" alt="England Twilight Map" title="England Twilight Map" /><h2>Question:</h2>Why do Some Zmanim Never Occur in Some Locations? (Developers Beware)
<h2>Answer:</h2>While most people realize that the sun may not rise or set in the <a href="http://en.wikipedia.org/wiki/Arctic_Circle">Arctic</a> and <a href="http://en.wikipedia.org/wiki/Antarctic_Circle">Antarctic</a> Circles (see the Star-K&#8217;s <a href="http://www.star-k.org/kashrus/kk-whendoesonepraywhenthereisnoday.htm">When Does One Pray When There Is No Day</a>),  many are not aware that some twilight dips will not occur during part of the year as far south of the Arctic Circle as London. For example around the <a href="http://en.wikipedia.org/wiki/Summer_solstice">summer solstice</a> in <a href="http://www.kosherjava.com/maps/zmanim2.html?lat=51.5&#038;lng=-0.10&#038;zoom=6&#038;date=2010-06-21">London (on the zmanim map)</a> the sun will never dip far enough below the horizon to reach <a href="http://www.kosherjava.com/zmanim/docs/api/net/sourceforge/zmanim/ComplexZmanimCalendar.html#getAlos16Point1Degrees%28%29">Alos 16°</a>. This happens in London from June 5<sup>th</sup> till July 8<sup>th</sup>. The image seen on the top right (original at <a href="http://www.timeanddate.com/worldclock/sunearth.html?n=136&#038;month=6&#038;day=21&#038;year=2010&#038;hour=0&#038;min=28&#038;sec=0">timeanddate.com</a>) shows various <a href="http://www.kosherjava.com/zmanim/docs/api/net/sourceforge/zmanim/AstronomicalCalendar.html#getBeginAstronomicalTwilight%28%29">civil twilights</a> centered on London on Midnight June 21<sup>st</sup>. Look carefully to see the various bands of twilight. Gateshead will not have Alos 16° from May 16<sup>th</sup> through July 28<sup>th</sup>, while <a href="http://www.kosherjava.com/maps/zmanim2.html?lat=61.189412&#038;lng=-149.86042&#038;zoom=17&#038;date=2010-08-21">Anchorage, Alaska</a> (yes there is a <a href="http://lubavitch.com/centers/detail.html?id=389">Frum Shul in Anchorage</a> with an interesting davening direction issue that is discussed in the <a href="http://www.kosherjava.com/2011/01/17/davening-direction-from-alaska/">Davening Direction from Alaska</a> post ) will not have Alos 16.1° from April 25<sup>th</sup> to August 20<sup>th</sup>. Zmanim based on sunrise such as <a href="http://www.kosherjava.com/zmanim/docs/api/net/sourceforge/zmanim/ZmanimCalendar.html#getAlos72%28%29">Also 72</a> that is a 72 minute offset of sunrise can be calculated as long as sunrise can be calculated, something that will happen as long as you are not in the Arctic or Antarctic Circles.
For this reason, the Zmanim API will return a <a href="http://en.wikipedia.org/wiki/Pointer_%28computing%29#Null_pointer">null</a> when a zman will not happen. A <a href="http://java.sun.com/javase/6/docs/api/java/lang/Long.html#MIN_VALUE">Long.MIN_VALUE</a> will be returned when a <a href="http://en.wikipedia.org/wiki/Long_integer">long</a> is expected such as in the case of a Shaah Zmanis. While an inconvenience to developers who have to code for this, the alternative of a default date would mean that developers unaware of this would return incorrect zmanim, something far worse than a program error from a <a href="http://java.sun.com/javase/7/docs/api/java/lang/NullPointerException.html">NullPointerException</a>.
In recent weeks two publicly available programs using the Zmanim API ran into issues due to nulls returned for early alos times. Being something not anticipated by the developers, the nulls generated errors in the programs that quickly led to fixes.  For this reason Yitzchok updated the <a href="http://github.com/Yitzchok/Zmanim/">Zmanim .NET project</a> to return the nullable <em>DateTime?</em> instead of the regular DateTime that it had previously been returning. While the <a href="http://www.kosherjava.com/zmanim/docs/api/">Zmanim API documentation</a> always made the possibility of a null being returned possible, I modified the documentation to make this clear on the return value documentation for every zman. Code with the modified documentation was part of the recently released Zmanim API 1.2.1.]]></content:encoded>
			<wfw:commentRss>http://www.kosherjava.com/2010/06/02/faq-why-some-zmanim-never-occur-developers-beware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bearing to Yerushalayim and Zmanim Map 2.0</title>
		<link>http://www.kosherjava.com/2010/03/14/bearing-to-yerushalayim-and-zmanim-map-2-0/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=bearing-to-yerushalayim-and-zmanim-map-2-0</link>
		<comments>http://www.kosherjava.com/2010/03/14/bearing-to-yerushalayim-and-zmanim-map-2-0/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 05:32:53 +0000</pubDate>
		<dc:creator>KosherJava</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[Software Dev]]></category>
		<category><![CDATA[Zmanim]]></category>
		<category><![CDATA[Davening]]></category>
		<category><![CDATA[daylight savings time]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[Great Circle]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Latitude and Longitude]]></category>
		<category><![CDATA[Rhumb Line]]></category>
		<category><![CDATA[Timezone]]></category>

		<guid isPermaLink="false">http://www.kosherjava.com/?p=436</guid>
		<description><![CDATA[The availability of the Bearing to Yerushalayim and Zmanim Map was originally announced on December 30, 2007. At the time there were a number of bugs related to the Google Map API. These bugs were reported to Google and eventually fixed. Since that time, the only change was a minor JavaScript fix for IE. The [...]]]></description>
			<content:encoded><![CDATA[<img class="alignleft" src="/images/sepiaMap.jpg" alt="World map" title="World map" />The availability of the <a href="http://www.kosherjava.com/maps/zmanim.html">Bearing to Yerushalayim and Zmanim Map</a> was <a href="http://www.kosherjava.com/2007/12/30/bearing-to-yerushalayim-and-zmanim-map/">originally announced on December 30, 2007</a>. At the time there were a number of bugs related to the <a href="http://code.google.com/apis/maps/">Google Map API</a>. These bugs were reported to Google and eventually <a href="http://code.google.com/p/gmaps-api-issues/issues/list?can=1&#038;q=status%3AFixed%20reporter%3Akosherjava">fixed</a>. Since that time, the only change was a minor JavaScript fix for IE. The Bearing to Yerushalayim worked, but the zmanim tabs had a major issue because the timezone calculated was done based on the user&#8217;s current browser timezone. This made it tricky to check zmanim in a different location or timezone than the user&#8217;s current timezone. <img class="alignright" src="/images/zmanimTab.png" alt="Zmanim tab using timezones" title="Zmanim tab using timezones" />I recently updated the map to look-up the actual timezone of the latitude and longitude selected by the user. This was implemented by doing a look-up at the <a href="http://www.geonames.org">geonames.org</a> <a href="http://www.geonames.org/export/web-services.html">timezone  web-service</a>. The timezone is passed to the Zmanim API and used to generate the XML output of a list of daily zmanim that is displayed in the map. Since the <a href="http://en.wikipedia.org/wiki/Zoneinfo">Olson timezone database</a> changes a few times a year, there will almost certainly be cases where the proper timezone can&#8217;t be determined.  Some of these are changes of timezone names, such as the change from Asia/Calcutta to Asia/Kolkata (my host will not run the <a href="http://java.sun.com/javase/timezones/#tzu">TZ Updater tool</a>). In these cases a simple mapping between the old and new was added to the map. In cases where the timezone can&#8217;t be determined the timezone will default to GMT.  Ocean locations within 10 km of land will use the closest landmass, but anywhere beyond 10 km will default to GMT. One issue with using the geonames.org webservice, is that when it is down, the map will timeout. I experimented with various ways of dealing with this, but unless my host updates the Java version from 1.4, they are too complex to use at this time.

See the <a href="http://www.kosherjava.com/2008/04/07/technical-information-about-the-bearing-to-yerushalayim-map/">Technical Information about the Bearing to Yerushalayim Map</a> post for technical details about the original implementation.]]></content:encoded>
			<wfw:commentRss>http://www.kosherjava.com/2010/03/14/bearing-to-yerushalayim-and-zmanim-map-2-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Elevation Lookup Added to Zmanim Calendar Generator</title>
		<link>http://www.kosherjava.com/2006/09/09/elevation-lookup-added-to-zmanim-calendar-generator/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=elevation-lookup-added-to-zmanim-calendar-generator</link>
		<comments>http://www.kosherjava.com/2006/09/09/elevation-lookup-added-to-zmanim-calendar-generator/#comments</comments>
		<pubDate>Sun, 10 Sep 2006 03:32:05 +0000</pubDate>
		<dc:creator>KosherJava</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[Zmanim]]></category>
		<category><![CDATA[Elevation]]></category>
		<category><![CDATA[Latitude and Longitude]]></category>
		<category><![CDATA[Zmanim Accuracy]]></category>

		<guid isPermaLink="false">http://www.kosherjava.com/2006/09/09/elevation-lookup-added-to-zmanim-calendar-generator/</guid>
		<description><![CDATA[A lookup tool for elevation lookup was added to the Zmanim Calendar Generator page. This service is courtesy of Jonathan Stott&#8217;s earthtools.org elevation webservice. This Elevation data currently only covers all of mainland Europe (between latitudes 35°N and 60°N and longitudes 35°E and 15°W) and all of the contiguous states of the United States of [...]]]></description>
			<content:encoded><![CDATA[<img class="alignleft" src="/images/calendarJava.png" alt="Java Calendar"/>A lookup tool for elevation lookup was added to the <a href="http://www.kosherjava.com/zmanim-project/zmanim-calendar-generator/">Zmanim Calendar Generator page</a>. This service is courtesy of <a href="http://www.jstott.me.uk/">Jonathan Stott&#8217;s</a> <a href="http://www.earthtools.org/">earthtools.org</a> elevation webservice. This Elevation data currently <a href="http://www.earthtools.org/aboutdata.htm#height">only covers</a> all of mainland Europe (between latitudes 35°N and 60°N and longitudes 35°E and 15°W) and all of the contiguous states of the United States of America (between latitudes 20°N and 50°N and longitudes 65°W and 125°W). The source of the data is: <blockquote>The terrain model used to find heights above sealevel is from the <a href="http://srtm.usgs.gov/">Shuttle Radar Topography Mission (SRTM)</a> which was a joint project between the US National Geospatial-Intelligence Agency (NGA) and the National Aeronautics and Space Administration (NASA). Data was recorded for 11 days from the Space Shuttle Endevour from 11th February 2000. The data used here is at a resolution of 3 arc seconds (approximately 90m). </blockquote>
The lookup is done via an AJAX call.]]></content:encoded>
			<wfw:commentRss>http://www.kosherjava.com/2006/09/09/elevation-lookup-added-to-zmanim-calendar-generator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zmanim Calendar Generator Now using Google Maps</title>
		<link>http://www.kosherjava.com/2006/01/26/zmanim-calendar-generator-now-using-google-maps/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=zmanim-calendar-generator-now-using-google-maps</link>
		<comments>http://www.kosherjava.com/2006/01/26/zmanim-calendar-generator-now-using-google-maps/#comments</comments>
		<pubDate>Thu, 26 Jan 2006 21:45:11 +0000</pubDate>
		<dc:creator>KosherJava</dc:creator>
				<category><![CDATA[Software Dev]]></category>
		<category><![CDATA[Zmanim]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[Latitude and Longitude]]></category>

		<guid isPermaLink="false">http://www.kosherjava.com/2006/01/26/zmanim-calendar-generator-now-using-google-maps/</guid>
		<description><![CDATA[The Zmanim Calendar Generator now has a simple way to look up longitude and latitude information using the Google Maps API. To use this feature, click on the Google Maps icon to display the map (location centered on Bais Medrash Gevoha in Lakewood), find the location that you want to generate zmanim for, and click [...]]]></description>
			<content:encoded><![CDATA[<img class="alignleft" src="/images/sepiaMap.jpg" alt="World map" title="World map" />The <a href="http://www.kosherjava.com/zmanim-project/zmanim-calendar-generator/">Zmanim Calendar Generator</a> now has a simple way to look up longitude and latitude information using the <a href="http://maps.google.com/">Google Maps</a> <a href="http://www.google.com/apis/maps/">API</a>. To use this feature, click on the Google Maps icon to display the map (location centered on <a href=" http://en.wikipedia.org/wiki/Lakewood_yeshiva">Bais Medrash Gevoha</a> in Lakewood), find the location that you want to generate zmanim for, and click that point in the map. This will update the longitude and latitude fields in the form. The Google API was pretty straight forward and simple. At the same time I tried to integrate an elevation lookup. Google does not provide elevation information, but I attempted to look it up using a webservice. This seemingly simple task was not very straight forward. The approach was to grab the SOAP response from the <a href="http://rest.blueoxen.net/cgi-bin/wiki.pl?FrontPage">REST</a> style <a href="http://www.earthtools.org/webservices.htm#height">elevation webservice</a> made available by <a href="http://www.earthtools.org">Jonathan Stott</a>. My plan was to do this all via the client sided XML parsing. The first issue encountered was browser security that <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/9ad3c67d-6695-42cf-95fb-0310d0950a06.asp">does not allow</a> cross-domain loading of XML documents (By the way this was not using XMLHttpRequest, but the same security restrictions apply). This was solved by a simple PHP page that was just a proxy for the call. That done, I managed to get it to work in IE, but it crashed the browser every second call or so. The crashing was solved by adding a small delay. I never managed to get it working in Mozilla. I later tried to use the existing Google Maps API to load it, but never got it working. I commented out all elevation code, and will get to that part at some future date. I also removed the non decimal longitude and latitude option. I hope this will be useful.]]></content:encoded>
			<wfw:commentRss>http://www.kosherjava.com/2006/01/26/zmanim-calendar-generator-now-using-google-maps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zmanim Calendar Generator TODO List</title>
		<link>http://www.kosherjava.com/2005/07/27/zmanim-calendar-generator-todo-list/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=zmanim-calendar-generator-todo-list</link>
		<comments>http://www.kosherjava.com/2005/07/27/zmanim-calendar-generator-todo-list/#comments</comments>
		<pubDate>Wed, 27 Jul 2005 22:14:43 +0000</pubDate>
		<dc:creator>KosherJava</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[Software Dev]]></category>
		<category><![CDATA[Zmanim]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Latitude and Longitude]]></category>

		<guid isPermaLink="false">http://www.kosherjava.com/2005/07/27/zmanim-calendar-generator-todo-list/</guid>
		<description><![CDATA[I slightly updated the Zmanim Calendar Generator to add some user input validation. Looking at the logs, I noticed that someone generated a calendar with the longitude and latitude of Lakewood, NJ (the default), with just the location label changed to Minneapolis, MN. I don&#8217;t know if the user was just testing, or just assumed [...]]]></description>
			<content:encoded><![CDATA[<img class="alignleft" src="/images/calendarJava.png" alt="Java Calendar"/>I slightly updated the <a href="http://www.kosherjava.com/zmanim-project/zmanim-calendar-generator/">Zmanim Calendar Generator</a> to add some user input validation.
Looking at the logs, I noticed that someone generated a calendar with the longitude and latitude of Lakewood, NJ (the default), with just the location label changed to Minneapolis, MN. I don&#8217;t know if the user was just testing, or just assumed that I picked up the <a href=" http://en.wikipedia.org/wiki/Geocoding">geocoding</a> information by parsing the location name. This led to the addition of a JavaScript confirm when the location name is changed. 
Items on the TODO list are:
<ul>
<li>Use JavaScript to convert the longitude and latitude when the format is changed from decimal to degrees, minutes and seconds</li>
<li>Provide links to locate longitude and latitude information</li>
<li>Add support for the generation of a standard (not full as is the default now) calendar with a much smaller set of zmanim</li>
<li>Implement the generation of PDF calendars</li>
<li>Possibly use the <a href="http://maps.google.com/">Google Maps</a>  <a href="http://www.google.com/apis/maps/">API</a> to allow the selection of longitude and latitude information</li>
</ul>

The code for the PDF generation is already in the API but has not been updated in a while and does not work properly. This will also have to be updated for the standard calendar mentioned above.
The way I envision interacting with Google Maps would be to allow the user to center their location in the map, and have those coordinates used for the zmanim calendar. This would have been relatively trivial if they provided geocoding  information, by just allowing the user to enter their location as it can be done at Google Maps, but they currently <a href="http://www.google.com/apis/maps/documentation/#Geocoding_Routing_Etc">do not provide geocoding </a> information. I haven’t touched their API yet, and although it does not look too complex, it will probably take a while.
]]></content:encoded>
			<wfw:commentRss>http://www.kosherjava.com/2005/07/27/zmanim-calendar-generator-todo-list/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

