| File: | blib/lib/Geo/Coder/Free/DB/MaxMind/admin.pm |
| Coverage: | 84.2% |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Geo::Coder::Free::DB::MaxMind::admin; | ||||||
| 2 | |||||||
| 3 | 17 17 17 | 31 15 196 | use strict; | ||||
| 4 | 17 17 17 | 34 42 367 | use warnings; | ||||
| 5 | 17 17 17 | 34 13 62 | use autodie qw(:all); | ||||
| 6 | |||||||
| 7 - 15 | =head1 NAME Geo::Coder::Free::DB::MaxMind::admin =head1 VERSION Version 0.42 =cut | ||||||
| 16 | |||||||
| 17 | our $VERSION = '0.43'; | ||||||
| 18 | |||||||
| 19 | # admin1.db is from http://download.geonames.org/export/dump/admin1CodesASCII.txt | ||||||
| 20 | |||||||
| 21 | 17 17 17 | 36483 121 106 | use parent 'Database::Abstraction'; | ||||
| 22 | |||||||
| 23 | sub _open { | ||||||
| 24 | 0 | my $self = shift; | |||||
| 25 | |||||||
| 26 | 0 | return $self->SUPER::_open(sep_char => "\t", column_names => ['concatenated_codes', 'name', 'asciiname', 'geonameId']); | |||||
| 27 | } | ||||||
| 28 | |||||||
| 29 | 1; | ||||||