Thanks to everyone for their advice. It definitely makes sense to have an existing database of distances (or latitudes and longitudes) and check it first, before venturing out onto the web.

Moklevat's suggestion of http://sourceforge.net/projects/zips/ gives me a pre-packaged CSV file, based on the 2000 US Census data, of zip codes + latitudes and longitudes. Assuming that the data is accurate enough (I'll use Google to do some comparisons), it's a good basis for my work (http://mvhub.com/).

FYI, the US Postal Service charges $50/state and $700/all ZIP codes for this data (TIGER/ZIP+4). The woman I spoke with said that the data was updated every two or three years, which isn't that much better than using the Census data.

As for Geo::Google, one of its developers, Michael Trowbridge, responded to my bug report within half an hour, offering a patch. Turns out that Google's responses switched from UTF-8 character encoding to ASCII.

--John

In reply to Re: ZIP code distances by jrmtreebeard
in thread ZIP code distances by jrmtreebeard

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.