Weather Report at Current Location

            Educational Purposes, No Commercial Value
            GENERAL DISCLAIMERS
This site is for educational purposes in nature and is not designed to assist pilots and aircrews for flight planning or familiarization. It may be not used in conjunction with pre-flight or flight information needed to satisfy any requirements of the Federal Aviation Administration (FAA) and is not to be considered as any source of information to meet pre-flight or flight action. If you are in an actual airplane or planning for an actual flight, you are to de-install this app or navigate away from this website immediately.
Even though this webpage returns information from the United States National Weather Service, it is not to be used as information for an actual weather briefing required by airmen before planning an actual flight.





Current Location, Nearest National Weather Office, and Current Weather Report

This webpage asks the user to allow the browser access to the users location. If the user responds to allow the browser access to location data, then the navigator geolocation method is called and if it returns the information in the object within 10 seconds, the information will be displayed on the screen for the user.


Following the call to get the geolocation of the device, the geolocation is used ( latitude and longitude ) to call the National Weather Service to find the nearby weather report. The first call to the National Weather Service simply returns the nearest weather office. A JavaScript alert is displayed to show which National Weather Serice Office will be used to respond with the current local weather information. A second AJAX call must then be made to that weather office to get the current weather report. From the second call I return the time of the weather report and some of the important information it provides.


The purpose of showing the location with the altitude also is to show the user some of the information necessary to complete the information requested to calculate the RV6-A takeoff distance calculation ( calculator ) which was a webpage developed earlier. This webpage was hoped to contain an AJAX updated Weather report which will show location information of local air pressure. However, I was unable to find air pressure from the information provided by the National Weather Service in the AJAX call. Again, this is input information for the takeoff distance calculator developed earlier in the course.


Finally, the weather information could be placed in a loop and called 1 time per hour to refresh the information. Since each of these webpages already contains a call 1 time per second to refresh an active clock, I felt it was not necessary to demonstrate the weather information refresh behavior.



Current Location and Find Nearest Airport
Current Lat: Long:
Current Weather Alt:
Current Weather: