Skip Menu |

This queue is for tickets about the Geo-StreetAddress-US CPAN distribution.

Report information
The Basics
Id: 122617
Status: new
Priority: 0/
Queue: Geo-StreetAddress-US

People
Owner: Nobody in particular
Requestors: NHORNE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.04
Fixed in: (no value)



Subject: Can't cope with counties in name
I don't think this is fixable, but I'm adding it here in case it is, and if it isn't then it should be documented in the 'BUGS' section. Say you have a place such as "Rupert, Minidoka, Idaho, USA", where Rupert is the city and Minidoka is the county. The module parses this as: $VAR1 = \{ 'state' => 'ID', 'street' => 'Rupert', 'city' => 'Minidoka', 'type' => '' }; Good luck with fixing that one :-)
Following on, this address is mis-parsed, claiming the state is 'La' rather than 'IN': Monroe Hotel, La Porte, LaPorte, Indiana, USA $ cat address #!/usr/bin/env perl use strict; use warnings; use Geo::StreetAddress::US; use Data::Dumper; my $place = 'Monroe Hotel, La Porte, LaPorte, Indiana, USA'; if(my $href = Geo::StreetAddress::US->parse_location($place)) { print Data::Dumper->new([\$href])->Dump(); } $ ./address $VAR1 = \{ 'street' => 'Monroe', 'type' => '', 'state' => 'La', 'city' => 'Hotel' }; $