On Nov 20, 2007, at 3:18 PM, Jeremy Dunck wrote: > > On Nov 20, 2007 3:26 PM, hajo <[EMAIL PROTECTED]> wrote: >> >> Thanks a lot; will defintely look into this one! >> The other solution I looked at was to send an address to google (We >> have a commercial deal with them; I work for a failry large >> newspaper); get it geocoded and then go from there... The issue here >> is one of time... > > Time to implement, or run-time? Implementing is not that hard... > http://www.google.com/uds/solutions/localsearch/reference.html
Perl has a nice library, Geo-StreetAddress, that does some parsing and normalization. I looked at porting it to Python, but it has some crazy regex code in it. You should be able to call it from Django. The page below has some other options (like scraping the US Postal Service website). http://search.cpan.org/~sderle/Geo-StreetAddress-US-0.99/US.pm Don --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---