First of all: if you haven't seen Geo::Coder::US (and Geo::Coder::US::Import) you should take a look at them. With a moderate amount of initial setup, you can do all of your geocoding locally, which may be helpfull if you need to deal with a large volume of addresses, or try lots of varients of each address.

Second: Try lots of varients of each address. For example: http://geocoder.us/ does very poorly with the address "235 Second Street, 94105", but it does a great job with "235 2nd Street, 94105". Parsing the address into it's components (using Geo::StreetAddress::US) and then trying to "tweak" the various components untill you get a match may be the way to go.

Lastly: As you may or may not know, http://geocoder.us/ is powered by Geo::Coder::US and Geo::StreetAddress::US. Those modules are both documented to have issues with addresses in Michigan which contain letters in the buildeing number. If you've got some time/energy/need - you might try patching them to fix that bug.

UPDATE: Acctaully, I just realized that Geo::Coder::US->filter_ranges might be exactly what you need .. I haven't tried it myself.


In reply to Re: Looking for a cheap, Perl-friendly GeoCoding service by hossman
in thread Looking for a cheap, Perl-friendly GeoCoding service by sgifford

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.