| File: | blib/lib/Geo/Coder/Free/DB/MaxMind/admin2.pm |
| Coverage: | 100.0% |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Geo::Coder::Free::DB::MaxMind::admin2; | ||||||
| 2 | |||||||
| 3 | 9 9 9 | 51974 6 93 | use strict; | ||||
| 4 | 9 9 9 | 14 7 226 | use warnings; | ||||
| 5 | |||||||
| 6 - 14 | =head1 NAME Geo::Coder::Free::DB::MaxMind::admin2 - driver for http://download.geonames.org/export/dump/admin2Codes.txt =head1 VERSION Version 0.41 =cut | ||||||
| 15 | |||||||
| 16 | our $VERSION = '0.41'; | ||||||
| 17 | |||||||
| 18 | # It contains admin areas drilled down from the admin1 database such as US counties | ||||||
| 19 | # Note that GB has counties | ||||||
| 20 | # A typical line is: | ||||||
| 21 | # GB.ENG.G5 Kent Kent 3333158 | ||||||
| 22 | # So a look up of 'Sittingbourne' with a Region set to 'G5' in the cities database will give: | ||||||
| 23 | # gb,sittingbourne,Sittingbourne,G5,41148,51.333333,.75 | ||||||
| 24 | |||||||
| 25 | 9 9 9 | 103 27 23 | use Geo::Coder::Free::DB::MaxMind::admin; | ||||
| 26 | |||||||
| 27 | our @ISA = ('Geo::Coder::Free::DB::MaxMind::admin'); | ||||||
| 28 | |||||||
| 29 | 1; | ||||||