The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Locale::Places - Translate places using http://download.geonames.org/

VERSION

Version 0.01

METHODS

new

Create a Locale::Places object.

Takes one optional parameter, directory, which tells the object where to find the file GB.csv. If that parameter isn't given, the module will attempt to find the databases, but that can't be guaranteed.

translate

Translate a city into a different language.

   use Locale::Places;

   print Locale::Places->new()->translate({ place => 'Dover', language => 'fr' });      # Prints "Douvres"

AUTHOR

Nigel Horne, <njh at bandsman.co.uk>

BUGS

Only supports towns and cities in GB at the moment.

SEE ALSO

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Locale::Places

You can also look for information at:

LICENCE AND COPYRIGHT

Copyright 2020 Nigel Horne.

This program is released under the following licence: GPL2

This product uses data from geonames, http://download.geonames.org.