Fun Google Maps tool you're really going to "dig"!

Sunday, August 28, 2005

Remember when you'd dig a hole in your backyard or at the beach as a kid, and you'd hear friends, parents or a passerby say to you: "If you keep digging, you're going to reach China!" Well, Luis Felipe Cipriani of Brazil is going to help you find out if they were right. He's created the "If I dig a very deep hole, where I go to stop?".... Google Maps tool. :) This will help you determine where, if you were to dig a hole straight to other side of the earth, you would end up!



Luckily for me when I was younger, I stopped digging that hole before letting all the waters of the south pacific gush into my backyard sandbox. That would have been bad. ;)

Does anyone reach China? If you, post a comment and let us know!

5 Comments:

At 3:08 AM, Anonymous Anonymous said...

From North America, it merely flips me to the quivalent south of te equator.

 
At 9:56 AM, Anonymous Anonymous said...

similar problem. started in texas, ended up in the south pacific. hardly the other side of the planet.

 
At 10:37 AM, Anonymous Luis Felipe said...

Hi folks,

See the code below that calculates the antipodal point, I believe that is correct:

y is hole end latitude.
x is hole end longitude.
superPoint is the begin of the hole

var y = -1 * superPoint.y;
if (superPoint.x < 0) {
var x = Math.abs(superPoint.x);
x = 180 - x;
} else {
var x = superPoint.x;
x = 180 - x;
x = -1 * x;
}

But, like I said, I´m nbot responsible by the holes that are been made. :-)

 
At 12:37 PM, Anonymous Daline said...

Feluardo, good job! kkkk

 
At 9:13 PM, Anonymous Anonymous said...

Here's the updated code that works for me from my house I end up somewhere off the southern coast of Australia.

javascript:function otherSide() { map.closeInfoWindow(); var y = -1 * superPoint.y; var x = superPoint.x; if (superPoint.x < 0) { x = Math.abs(x); x = 180 - x; } else { x = 180 - x; x = -1 * x; } ; var newPoint = new GPoint(x,y); map.recenterOrPanToLatLng(newPoint); map.zoomTo(15); var marker = map.addOverlay(new GMarker(newPoint)); var html = 'Your hole ends here!'; map.openInfoWindowHtml(newPoint, html); };

 

Post a Comment

Links to this post:

Create a Link

<< Home

Archives