Your browser lacks required capabilities. Please upgrade it or switch to another to continue.
Loading…
<<set $start_set = false >>
<<set $LivingRmLat = 55.873511 >>
<<set $LivingRmLong = -4.385395>>
<<remember $CowdrayLat = 55.873352 >>
<<remember $CowdrayLong = -4.384639>>
<<remember $StartLat = $Location.latitude >>
<<remember $StartLong = $Location.longitude>>
[[Geolocate]] <<if approxEqual($Location.latitude, $LivingRmLat) and approxEqual($Location.longitude, $LivingRmLong)>>
You're at the parents' <<print $destination>>
<<print $LivingRmLat>>
<<print $LivingRmLong>>
This is: lat <<print $Location.latitude>>
long <<print $Location.longitude>>
You started at:
<<print $Start.latitude>>
<<print $Start.longitude>>
<<else>>
You're not at the parents'
<<print $LivingRmLat>>
<<print $LivingRmLong>>
This is: lat <<print $Location.latitude>>
long <<print $Location.longitude>>
You started at:
<<print $Start.latitude>>
<<print $Start.longitude>>
<<button "check for ghosts" [Check for ghosts] >>
<</button>>
<</if>>
[[Bull's Metal]]
<<if approxEqual($Location.latitude, $CowdrayLat) and approxEqual($Location.longitude, $CowdrayLong)>>
You're at the top of Cowdray Crescent
Cowdray: lat: <<print $CowdrayLat>>
long: <<print $CowdrayLong>>
This is: lat <<print $Location.latitude>>
long <<print $Location.longitude>>
You started at:
<<print $Start.latitude>>
<<print $Start.longitude>>
Difference is:
<<print diff($Location.latitude,$Start.latitude)>>
<<print diff($Location.longitude,$Start.longitude)>>
<<else>>
You're not at the top of Cowdray Crescent
Cowdray: lat: <<print $CowdrayLat>>
long: <<print $CowdrayLong>>
This is: lat <<print $Location.latitude>>
long <<print $Location.longitude>>
You started at:
<<print $Start.latitude>>
<<print $Start.longitude>>
Difference is:
<<print diff($Location.latitude,$Start.latitude)>>
<<print diff($Location.longitude,$Start.longitude)>>
<</if>>
[[Keep going]]This is: lat <<print $Location.latitude>>
long <<print $Location.longitude>>
You started at: lat<<print $StartLat>>
long<<print $StartLong>>
<<script>>
var watchID = navigator.geolocation.watchPosition(function(position) {
inrange(position.coords.latitude, position.coords.longitude, 0.0002);
});
<</script>>