# Copyright (c) 2002-2007 bivio Software, Inc. All Rights Reserved. # # Visit http://www.bivio.biz for more info. # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; If not, you may get a copy from: # http://www.opensource.org/licenses/lgpl-license.html # # $Id: USZipCode.bunit,v 1.2 2010/06/10 17:09:30 moeller Exp $ Type(); [ from_literal => [ [undef] => UNDEF(), ' ' => UNDEF(), 1 => US_ZIP_CODE(), '1234' => US_ZIP_CODE(), '00000' => '00000', '00001' => '00001', '10000' => '10000', '10000-' => '10000', '12345-1' => US_ZIP_CODE(), '12345 0' => US_ZIP_CODE(), '10000-0000' => '100000000', '12345 6789' => '123456789', '123456789' => '123456789', '0123456789' => US_ZIP_CODE(), '1234567890' => US_ZIP_CODE(), ], zip_codes_by_proximity => [ ['80303-1234', [qw(52001-1234 80303 80027 x)]] => [[ [qw(80303 105.27484 40.06777 0)], [qw(80027 105.26991 39.98083 6.00844869113992)], [qw(52001 90.8771 42.45887 764.255111958638)], ]], ['x', [qw(52001-1234 80303 80027 x)]] => [[]], ['80303', []] => [[]], ], ];