{"id":20075,"date":"2016-02-10T03:01:48","date_gmt":"2016-02-09T17:01:48","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=20075"},"modified":"2016-02-09T10:39:28","modified_gmt":"2016-02-09T00:39:28","slug":"php-geographicals-makeover-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/php-geographicals-makeover-primer-tutorial\/","title":{"rendered":"PHP Geographicals Makeover Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/\"><img decoding=\"async\" style=\"float:left;border: 15px solid pink;\" alt=\"PHP Geographicals Makeover Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/geographicals_makeover.jpg\" title=\"PHP Geographicals Makeover Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">PHP Geographicals Makeover Primer Tutorial<\/p><\/div>\n<p>A couple of days ago, when we added <a target=_blank title='PHP Earth Rotational Speed Primer Tutorial' href='#perspt'>PHP Earth Rotational Speed Primer Tutorial<\/a> as shown below, to our blogroll mix, it got us relooking at our Geographicals Suite of Web Applications at this blog that use this <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/\" title='Click picture'>live run<\/a> interface.<\/p>\n<p>Perhaps you remember the last member of the Geographicals Suite we added, the <a target=_blank title='PHP\/Javascript\/HTML Coriolis Effect Calculation Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/phpjavascripthtml-coriolis-effect-calculation-tutorial\/'>PHP\/Javascript\/HTML Coriolis Effect Calculation Tutorial<\/a>?<\/p>\n<p>We found that, this time around, we wanted to &#8230;<\/p>\n<ul>\n<li>rework how the weather information is gleaned &#8230; we now use a Google Search of a place name + &#8221; weather&#8221;<\/li>\n<li>get rid of a PHP warning regarding &#8220;header has already been sent&#8221; &#8230; a bug<\/li>\n<li>make the interface look a bit better with some CSS for ul-&gt;li styling involving emojis a lot like talked about at <a target=_blank title='WordPress Bullet Point CSS Styling Emoji Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/wordpress-bullet-point-css-styling-emoji-tutorial\/'>WordPress Bullet Point CSS Styling Emoji Tutorial<\/a> and the oft-used CSS H1 <a target=_blank title='CSS Embossed Text Primer Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/css-embossed-text-primer-tutorial\/'>CSS Embossed Text Primer Tutorial<\/a><\/li>\n<li>make the <a target=_blank title='Google Maps' href='http:\/\/maps.google.com'>Google Maps<\/a> &#8220;saddr=&#8221; and &#8220;daddr=&#8221; type calls work for mobile platform scenarios<\/li>\n<\/ul>\n<p>Below is the list of changed parts of the suite &#8230;<\/p>\n<ul>\n<li><a target=_blank title='Part of RJM Programming Geographical Suite web applications' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/index.php---------GETME'>index.php<\/a> Geographical Suite supervisor changed in <a target=_blank title='Part of RJM Programming Geographical Suite web applications' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/index.php---------GETME'>this way<\/a>  &#8230; supervising &#8230;<\/li>\n<li><a target=_blank title='Part of RJM Programming Geographical Suite web applications' href='http:\/\/www.rjmprogramming.com.au\/PHP\/SunAngle\/sun_angle_now_at.php----GETME'>sun_angle_now_at.php<\/a> changed in <a target=_blank title='Part of RJM Programming Geographical Suite web applications' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/SunAngle\/sun_angle_now_at.php----GETME'>this way<\/a><\/li>\n<li><a target=_blank title='Part of RJM Programming Geographical Suite web applications' href='http:\/\/www.rjmprogramming.com.au\/PHP\/MoonAngle\/moon_angle_now_at.php----GETME'>moon_angle_now_at.php<\/a> changed in <a target=_blank title='Part of RJM Programming Geographical Suite web applications' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/MoonAngle\/moon_angle_now_at.php----GETME'>this way<\/a><\/li>\n<li><a target=_blank title='Part of RJM Programming Geographical Suite web applications' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Coriolis\/coriolis_force_at.php----GETME'>coriolis_force_at.php<\/a> changed in <a target=_blank title='Part of RJM Programming Geographical Suite web applications' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/Coriolis\/coriolis_force_at.php----GETME'>this way<\/a><\/li>\n<li><a target=_blank title='Part of RJM Programming Geographical Suite web applications' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/place_latlong.php---GETME'>place_latlong.php<\/a> changed in <a target=_blank title='Part of RJM Programming Geographical Suite web applications' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/place_latlong.php---GETME'>this way<\/a><\/li>\n<li><a target=_blank title='Part of RJM Programming Geographical Suite web applications' href='http:\/\/www.rjmprogramming.com.au\/PHP\/HTML_CSS\/get_weather.php--GETME'>get_weather.php<\/a> changed in <a target=_blank title='Part of RJM Programming Geographical Suite web applications' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/HTML_CSS\/get_weather.php--GETME'>this way<\/a><\/li>\n<li><a target=_blank title='Part of RJM Programming Geographical Suite web applications' href='http:\/\/www.rjmprogramming.com.au\/PHP\/RotationalSpeed\/rotational_speed_at.php_GETME'>rotational_speed_at.php<\/a><\/li>\n<\/ul>\n<p>It is often good to revisit software and see what can be improved with fresh eyes.<\/p>\n<hr>\n<p id='perspt'>Previous relevant <a target=_blank title='PHP Earth Rotational Speed Primer Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/php-earth-rotational-speed-primer-tutorial\/'>PHP Earth Rotational Speed Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/RotationalSpeed\/rotational_speed_at.php\"><img decoding=\"async\" style=\"float:left;border: 15px solid pink;\" alt=\"PHP Earth Rotational Speed Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/RotationalSpeed\/rotational_speed_at.jpg\" title=\"PHP Earth Rotational Speed Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">PHP Earth Rotational Speed Primer Tutorial<\/p><\/div>\n<p>We discovered a way to calculate the Earth&#8217;s rotational speed for a given latitude.  When you see how fast we&#8217;re moving relative to somebody still in space you&#8217;ll be amazed and think gravity is pretty cool.  Even if you&#8217;re standing on your head right now, you&#8217;d have to agree with me that &#8220;ytivarg&#8221; is not such a bad concept also &#8230; <i>&#8220;can tell you it saved my bacon back in &#8217;66 when that boar from yonder ridge fell on me when I was stuck practising them thar cartwheely thingos, and got stuck not the right way up &#8230; if youse knows what ah mean&#8221;<\/i> &#8230; but we digress.<\/p>\n<p>The Earth is like a ball with a rod through it coming out at the North and South poles, and if you can imagine this, then you can probably imagine that the rotational speeds are the biggest near the Equator and get a lot smaller near the Poles.<\/p>\n<p>Still and all, at pretty big latitudes like for Archangel, in Russia, the rotational speeds get up with what we were taught was the speed of a Jumbo jet &#8230; back in the day.  As for Singapore &#8230; wow &#8230; take a look at our <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/RotationalSpeed\/rotational_speed_at.jpg\">tutorial picture<\/a> or try a <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/RotationalSpeed\/rotational_speed_at.php\" title='click picture'>live run<\/a> for yourself, and this is our PHP source code you could call <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/RotationalSpeed\/rotational_speed_at.php_GETME\" title='rotational_speed_at.php'>rotational_speed_at.php<\/a><\/p>\n<p>Ahhhh &#8230; the &#8220;where&#8221; of life &#8230; so interesting?!<\/p>\n<p>Believe it or not, the equation to calculate this we found in <i>&#8220;New Century Maths 9 (second edition) Stages 5.2\/5.3&#8221;<\/i> so thanks.  It goes like &#8230;<\/p>\n<p><code><br \/>\nEarth Rotational Speed (in km\/h) = ( 2 x &#928; x 6371 x cos(latitude) ) \/ 24<br \/>\n<\/code><\/p>\n<p> &#8230; where <i>6371<\/i> will do as radius of Earth in kilometres and <i>24<\/i> is the number of hours in an Earth day and <i>latitude<\/i> (for most functionalities such as Javascript&#8217;s Maths.cos() function) should be expressed in radians (where 1 degree = ( 1 x &#928; ) \/ 180 radians), and &#928; is, well, <a target=_blank title='PI information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Pi'>&#928;<\/a><\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d19998' onclick='var dv=document.getElementById(\"d19998\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/geographicals\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d19998' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d20075' onclick='var dv=document.getElementById(\"d20075\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/geographicals\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d20075' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>A couple of days ago, when we added PHP Earth Rotational Speed Primer Tutorial as shown below, to our blogroll mix, it got us relooking at our Geographicals Suite of Web Applications at this blog that use this live run &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/php-geographicals-makeover-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,33,37],"tags":[481,513,527,932,997,1166,1319],"class_list":["post-20075","post","type-post","status-publish","format-standard","hentry","category-elearning","category-software","category-tutorials","tag-geographicals","tag-google","tag-google-maps","tag-php","tag-programming","tag-software-2","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/20075"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=20075"}],"version-history":[{"count":5,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/20075\/revisions"}],"predecessor-version":[{"id":20080,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/20075\/revisions\/20080"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=20075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=20075"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=20075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}