Lab 34: Geolocation
Link to Lab 34:
This lab isn't meant so much for computers but is rather meant to be used as an app. This lab is essentially a compass that also gives you how fast you are traveling. Since a computer isn't traveling, no data would be given so the webpage would not work, but on a phone, it will work because more likely than not, you are moving. There is very little code involved because all devices today having GPS built in, so in my opinion, the most important line of code is
navigator.geolocation.watchPosition((data) ==> {
that line gives the computer it needs to perform the function including position and speed, so without the line of code, the computer would have no data to use. While compasses are common, I believe it is important to understand how they work, so it can be connected to other uses, this may just be how PokemonGo was created.
This lab isn't meant so much for computers but is rather meant to be used as an app. This lab is essentially a compass that also gives you how fast you are traveling. Since a computer isn't traveling, no data would be given so the webpage would not work, but on a phone, it will work because more likely than not, you are moving. There is very little code involved because all devices today having GPS built in, so in my opinion, the most important line of code is
navigator.geolocation.watchPosition((data) ==> {
that line gives the computer it needs to perform the function including position and speed, so without the line of code, the computer would have no data to use. While compasses are common, I believe it is important to understand how they work, so it can be connected to other uses, this may just be how PokemonGo was created.

Comments
Post a Comment