SmartFeedSmartFeed          

Porsche Hangout


WELCOME - YOU ARE CURRENTLY VIEWING 419EATER AS A GUEST

By joining our community you will have the ability to post topics and access other forums reserved for members. Registration is quick, simple and absolutely free. Join our community today by clicking here.

ScamWarners.com - Internet Anti-Fraud Center - now open!


 Website geniuses... can anyone help?

View next topic
View previous topic
 
Post new topicReply to topic
Author Message
wingman
Master Baiter


Joined: 31 Oct 2007
Posts: 156
Location: State of Confusion, USA


PostPosted: Sat Oct 24, 2009 6:03 am Reply with quoteBack to top

I have another hobby...geocaching. I want to make a puzzle where one goes to a website, puts in a set of latitude/longitude coordinates, then clicks a button. The page then tell the distance in feet to the unknown target coordinates.

This way someone could enter three different coordinates and triangulate to the correct ones, then use trial and error to narrow it to an exact position.

How hard would this be to accomplish, and what type of webspace would be needed to host this (I'm assuming) small program?

I'm clueless about setting this up.

_________________
This is not a signature. I type this at the end of every post to ensure quality control.

Total amount in counterfeit checks taken off the street: $11450USD

"YOU THE TALK OF SCAM YOU WILL REMAIN POOR OVER THERE, YOU DONT KNOW EZE EGO OF IHIALA.."[email protected]

"if only u had a little bit more education........u probably wouldn't have ended up this way."...Dr Bola Taylor

"THE GOD OF ABRAHAM WILL DESTROY U THIS 2007 YOU WILL NOT ENTER 2008 ."...henry oranusi (fake minister)
Cellphone x5 Closed lad accounts x6 pony
View user's profileSend private message
Master of Puppets
Baiting Guru


Joined: 12 Mar 2009
Posts: 3295
Location: Pulling the Strings


PostPosted: Sat Oct 24, 2009 11:22 am Reply with quoteBack to top

I don't know where you're located, but I'm in the Netherlands and have my websites hosted at http://www.antagonist.nl they host my websites (including domain) for €28,something per site per year. That gives me some 2,5 or 3 gig of webspace and 60 gig of datatraffic a month. That's more than any normal website needs (sites like eater obviously need a lot more than that). This should give you a nice indication of what it would cost to host it.

I know a bit (a small bit) about gps-coordinates and you just want the site to tell you the distance from the entered coordinates to the target coordinates? That would be a simple as calculating the difference between both latitudes and both longitudes, apply pythagoras and output the distance? In that case the script would be really simple and the cheapest hosting possible (as long as it offers php-support (or ASP-support, if you can find someone to code in ASP. ASP hosting is less common and AFIK usually a bit more expensive) would suffice.

Anyway, the script is really easy to make, as long as it doesn't require any fancy lay-out it shouldn't take too much time.


EDIT: I suspect that this program only needs to work for one set of target coordinates? If that's the case, and I don't need to add any layout, I'll write you that script as a present for your upcoming eaterversary Wink

_________________
Closed lad accounts x4 Goat Easter Egg
Oke: Todger club entry submission + T.W.A.T (Co-bait with Albator)
View user's profileSend private message
wingman
Master Baiter


Joined: 31 Oct 2007
Posts: 156
Location: State of Confusion, USA


PostPosted: Sat Oct 24, 2009 5:05 pm Reply with quoteBack to top

Certainly no fancy layout required, but I'm afraid the math is a little more involved than that.

Look at this: http://www.movable-type.co.uk/scripts/latlong-vincenty.html

Of course, I don't need the output to show azimuth or bearing, just distance... and one of the points would be fixed. However, I suspect the math would be the same.

I'll freely admit that this is over my head.

_________________
This is not a signature. I type this at the end of every post to ensure quality control.

Total amount in counterfeit checks taken off the street: $11450USD

"YOU THE TALK OF SCAM YOU WILL REMAIN POOR OVER THERE, YOU DONT KNOW EZE EGO OF IHIALA.."[email protected]

"if only u had a little bit more education........u probably wouldn't have ended up this way."...Dr Bola Taylor

"THE GOD OF ABRAHAM WILL DESTROY U THIS 2007 YOU WILL NOT ENTER 2008 ."...henry oranusi (fake minister)
Cellphone x5 Closed lad accounts x6 pony
View user's profileSend private message
Master of Puppets
Baiting Guru


Joined: 12 Mar 2009
Posts: 3295
Location: Pulling the Strings


PostPosted: Sat Oct 24, 2009 5:27 pm Reply with quoteBack to top

Whether one point is fixed or not doesn't really matter for the math, it does for the scripting a bit.

I believe I've found some premade php-functions that can be used to calculate the distance between two geographical points. If I use those then making this script will only be a matter of making a form and running the input of that form through the found function and outputting that function's result...

The (best looking) code I found was probably using Haversine's formula. From the article you linked to:
Quote:

Vincenty’s formula is accurate to within 0.5mm, or 0.000015″ (!), on the ellipsoid being used. Calculations based on a spherical model, such as the (much simpler) Haversine, are accurate to around 0.3% (which is still good enough for most purposes, of course).


The formula, in php-code, can be found here. Even without any php-knowledge, you might be able to see the math it uses. This function can also output in kilometers, miles and nautical miles.

http://www.zipcodeworld.com/samples/distance.php.html

I don't think we need 0.5 mm precision for geocaching, do we?

EDIT: The page for the Vincenty-formula has a javascript script at the bottom... If that works, I can use that. I know enough javascript to get that working.

_________________
Closed lad accounts x4 Goat Easter Egg
Oke: Todger club entry submission + T.W.A.T (Co-bait with Albator)
View user's profileSend private message
wingman
Master Baiter


Joined: 31 Oct 2007
Posts: 156
Location: State of Confusion, USA


PostPosted: Sat Oct 24, 2009 6:30 pm Reply with quoteBack to top

I am an out of work land surveyor, so I get what is happening there. I understand the math, but I can't do it.. I have a computer for that Very Happy

This little webpage would need to be up for at least a couple of years. However, it wouldn't see more than 5 visits a week once the initial rush to solve the puzzle passes. At any rate, I don't see more than 50 visits a week for the first month.

Seems to me that that would be a very small amount of traffic, considering that the page would be very simple and the information entered very little. Am I correct in my thinking?

_________________
This is not a signature. I type this at the end of every post to ensure quality control.

Total amount in counterfeit checks taken off the street: $11450USD

"YOU THE TALK OF SCAM YOU WILL REMAIN POOR OVER THERE, YOU DONT KNOW EZE EGO OF IHIALA.."[email protected]

"if only u had a little bit more education........u probably wouldn't have ended up this way."...Dr Bola Taylor

"THE GOD OF ABRAHAM WILL DESTROY U THIS 2007 YOU WILL NOT ENTER 2008 ."...henry oranusi (fake minister)
Cellphone x5 Closed lad accounts x6 pony
View user's profileSend private message
Master of Puppets
Baiting Guru


Joined: 12 Mar 2009
Posts: 3295
Location: Pulling the Strings


PostPosted: Sat Oct 24, 2009 11:13 pm Reply with quoteBack to top

Yes, the amount of data traffic that would generate isn't even worth mentioning.

_________________
Closed lad accounts x4 Goat Easter Egg
Oke: Todger club entry submission + T.W.A.T (Co-bait with Albator)
View user's profileSend private message
YeaWhatever
unimaginable bastard pig
unimaginable bastard pig


Joined: 24 Oct 2005
Posts: 4188
Location: Secret Lair


PostPosted: Sun Oct 25, 2009 1:44 am Reply with quoteBack to top

This would not be hard to do at all. Google has an API for their map stuff. It's really easy to use (assuming that you have some programming knowledge).

http://code.google.com/apis/maps/documentation/examples/

_________________
<a href="http://www.419eater.com/html/letters.htm" target="_blank">
Safari<i>"I just want to know why."</i> - Koffi Kuku - The Road to Chad/Darfur
Safari<i>"We are in Kampala."</i> - Bernard Martin - The Road to the Bwindi Impenetrable Forest
Safari<i>"i have arrive safe in namibia"</i> - Tony Kalabi - The Road to the Skeleton Coast
Safari<i>"he is in aswan"</i> - Larry Ken - The Road to Abu Sunbul
Safari The Road to the Hot Zone</a>
T.W.A.T<a href="http://forum.419eater.com/forum/viewtopic.php?t=89779" target="_blank"> The Making of a TWAT</a>
T.W.A.T<a href="http://forum.419eater.com/forum/viewtopic.php?t=100535" target="_blank"> The Second Coming of TWAT</a>
Golden Pith Mortar x17
View user's profileSend private messageSend e-mailSkype Name
ThankingArthur
419Eater is my life


Joined: 04 Oct 2009
Posts: 356
Location: The Golden Tulip Hotel


PostPosted: Sun Oct 25, 2009 8:13 am Reply with quoteBack to top

With that little traffic, there's really no need to pay for hosting as well. There are heaps of free hosts that would be fine for your needs.

ulmb.com comes to mind immediately but there are heaps of others.

_________________
Safari Morgan: Accra, Ghana to Lomé, Togo and Back. (~370km total) "it was hurt i paid hotel bills and also rented a car to pick Sarah up at the airport it was so hurt i spent money to go down to Lome"

12x Closed lad accounts Oink.

i promise you .you shall pay for this -Another satisfied customer
View user's profileSend private message
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



E-Mail Header Analysis


All Content © 2003 - 419Eater.com
Powered by phpBB © 2001, 2002 phpBB Group :S5: FI Theme :: All times are GMT