J. Severyn wrote:
Great Job Chris.
The is one of my pet peeves. Different maps, different users, etc do not
use consistent formats. My GPS will accept input in different formats, but
many times I've entered coordinates in one format when the GPS was set for
entry in a different format. I'm always pulling coordinates from topo maps
or other sources and I must not forget to do the conversion to make the
entries consistent. (or keep flipping the GPS to accept the different
formats)
The only comment I might make: It might be useful to catch a case of
mistaken mixed entry such as: 30.3 45 56 which results in a value
greater than 31 degrees. This would catch the improper entry before the
data is used, as once it is converted, might make finding the error
difficult.
Sure, I'd like to see the code if possible.
Remove the ".cutout" for my true email address.
Regards,
John Severyn
@KLVK
"Chris W" wrote in message
news:HAHKg.9416$JR5.1674@dukeread11...
This is off topic but something that I think pilots can appreciate.
I am working on a web site that will require the entry of latitude
longitude coordinates. As you probably know there area lot of different
ways to format latitude and longitude. I have done my best to make my
code work no mater what format you use. If you have some time and would
like to try it, I want to know if anyone can break it. If you do, please
send me the data you used to break it, so I can figure out why it broke
and fix it. Below is the URL for the test. The web site it is currently
on is not the web site it is for, that is just where I am doing the
testing until I get a server set up for the new site.
Su- I had a bit of trouble with this recently figuring out
what google earth would accept.
http://www.multimap.com/map/
browse.cgi?lat=51.4829&lon=-0.1009
&scale=10000&icon=x
lat=51.4829 lon=-0.1009 BAD
51.4829 -0.1009 OK
51.4829 N 0.1009 W OK
51:28:58N 0:06:03W OK
Lat: 51:28:58N (51.4829) Lon: 0:06:03W (-0.1009) OK WOW!!!
Lat: 51:28:58N Lon: 0:06:03W OK
40° 4'50.36"N 96° 9'40.26"W
N/W disappeared from input boxes on processing
OK though. Google Earth.
This looks pretty nice, just tried a few and they almost all worked.