Re: National Meet Needs To Be Central For Everyone

From: andy levy (andy-dml@levyclan.us)
Date: Sun Nov 28 2004 - 22:13:20 EST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/26/2004 11:53 PM, jon@dakota-truck.net wrote:

| : If anyone can come up with an automated system that can collect
| : coordinates via a web form, append them to a text file, and run a
script,
| : let me know. I'm using xplanet under Linux, no idea if it's ported
| : anyplace else. It's pretty easy to come up with a script that'll
generate
| : the maps, all I'm missing is some way to get the data points in to the
| : text file. Of course, that would require people to look up their
own GPS
| : coordinates, I wouldn't even know how to automate the lookup process.
|
|
| Well, its not automated, but I found this:
|
| http://www.zipinfo.com/search/zipcode.htm
|
| Which will convert a zip code into lat/long.
|
| Here's another one: http://www.census.gov/cgi-bin/gazetteer
|
|
| Let me know if I can be of any help with such a script - I'm not
| sure if you are looking to run such a thing on your web site itself,
| or on your home PC, or what. Obviously, if you are running it at
| home, you'll need a web server there. Might be easier to start out
| with a list of zip codes, and names which might be created manually
| (collected via e-mail, or an on-line form which would just e-mail
| the results to you), then you just run a script which uses that
| data to create a text file with the proper lat/long coordinates,
| etc. (which I assume is what xplanet uses to create the maps?)

A little Perl with WWW::Mechanize and you could probably take a textfile
containing the ZIP codes and run right through them, make a call out to
the site, get the result back, and put the lat/long into a datafile.

And I know how much you *love* Perl, Jon.

- --
- -andy

http://home.rochester.rr.com/alevy/dakota - andy-dml@levyclan.us
- --------------------------------------------
"Whatever Adam does, do the opposite and you'll be fine"
        -Bob Tom
- --------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)

iD8DBQFBqpPQxPJNBidNgHkRAufmAJ4xcU1Lsy1dQ4VjXyLzSzAkqMmb1wCdHFbg
RJ8dymPAvnlvNKORlJ3WsFM=
=gqwk
-----END PGP SIGNATURE-----



This archive was generated by hypermail 2b29 : Sat Jan 01 2005 - 11:47:53 EST