NAME

Geo::Names::Russian - parse and split russian geographical names

VERSION

version 0.02

SYNOPSIS

use Geo::Names::Russian qw{ :all };

for my $street ( @streetnames )
    $count{ streetname_keystring( $street ) } ++;
}

FUNCTIONS

streetname_split

Splits streetname into meaningful parts

my $street = '2-я Тверская-Ямская ул.';
my ( $status, $name, $addition, $number, $km ) = streetname_split( $street );
#  ( 'улица', 'Тверская-Ямская', '', '2-я', '' )

streetname_keystring

Returns unified keystring for street

my $street = '2-й пр. Марьиной Рощи';
my $key = streetname_keystring( $street );
# 'МАРЬИНОЙ РОЩИ  2 ПРОЕЗД'

housenumber_keystring

Returns unified keystring for house

my $house = '1А к3 с5';
my $key = housenumber_keystring( $house );
# '1АК3С5'