Lab #34 Geolocation
Lab #34, is titled "Geolocation". As indicated by the title, it is a website that tracks your location if you give the website permission to. Of course, it is blocked on many networks due to it being insecure. The information that it gathers is the longitude and latitude of your location and there is also a speedometer that tracks how fast someone is moving. Of course, a feature to track speed shouldn't be used on a desktop or laptop unless your running with it, which if you want to, then go ahead. It is recommended to try that on a mobile device, however, tech teach doesn't load on mobile devices. On the screenshot below, I used the preview in my Dreamweaver to try and simulate how the website works. If you load the page and successfully allow it access to your location, it will allow you to check the console and see your latitude and your longitude based on that location. Due to the preview being in my Dreamweaver, it shows no value for the speedometer, which changes on the actual website.
In order to accomplish the functioning of this website, I had added a div that would show the speed for the speedometer. As for the geolocation functions, I put them in the JavaScript. I used the JavaScript element navigator, to get the geolocation of the user. After getting that data, I console logged it so it would only show once you open up the console after loading the page while allowing it access to your location. The speed is also tracked with JavaScript which is calculated from your location ad updated after a certain amount of time.
Web designers might want to use this feature to create maps and help others navigate their way around to where they want to go. They could also make a mobile/web app that would allow users to track their speed in order to keep progress on their goals for running and etc.
In order to accomplish the functioning of this website, I had added a div that would show the speed for the speedometer. As for the geolocation functions, I put them in the JavaScript. I used the JavaScript element navigator, to get the geolocation of the user. After getting that data, I console logged it so it would only show once you open up the console after loading the page while allowing it access to your location. The speed is also tracked with JavaScript which is calculated from your location ad updated after a certain amount of time.
Web designers might want to use this feature to create maps and help others navigate their way around to where they want to go. They could also make a mobile/web app that would allow users to track their speed in order to keep progress on their goals for running and etc.

Comments
Post a Comment