Skip to content

voegelas/Geo-Location-TimeZoneFinder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7621b5f · Dec 1, 2024

History

18 Commits
Jun 9, 2024
Dec 1, 2024
Jun 9, 2024
Jul 23, 2023
Jan 15, 2023
Feb 6, 2023
Jan 15, 2023
May 2, 2023
Jan 15, 2023
Jan 15, 2023
Jul 23, 2023
Jan 15, 2023
Jan 15, 2023
Jul 23, 2023
Jul 23, 2023
Dec 1, 2024
Jul 23, 2023
Jan 21, 2023
Jul 23, 2023

Repository files navigation

Geo::Location::TimeZoneFinder

A Perl module that maps geographic coordinates to time zone names such as "Asia/Shanghai". The module uses database files that are published by the Timezone Boundary Builder project.

use Geo::Location::TimeZoneFinder;
my $finder = Geo::Location::TimeZoneFinder->new(
  file_base => '/path/to/combined-shapefile');
my @time_zones = $finder->time_zones_at(lat => $lat, lon => $lon);

DEPENDENCIES

Requires the file "timezones.shapefile.zip" from the Timezone Boundary Builder project. The zip archive must be extracted to a directory.

INSTALLATION

Run the following commands to install the software:

perl Makefile.PL
make
make test
make install

Type the following command to see the module usage information:

perldoc Geo::Location::TimeZoneFinder

LICENSE AND COPYRIGHT

Copyright (C) 2023 Andreas Vögele

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.