Installation
To run the timezone boundary builder script locally, you need to set up the development environment. This involves cloning the repository, installing Node.js dependencies, and ensuring you have the necessary command-line tools.
Prerequisites
Before you begin, ensure you have the following installed on your system:
- Node.js: The project requires Node.js version 12 or higher. You can check your version by running
node -v
. - Git: To clone the repository.
zip
command-line tool: Used for packaging the final release files. This is typically pre-installed on Linux and macOS.ogr2ogr
command-line tool: This is part of the GDAL library and is used to convert GeoJSON files to Shapefiles. You can install it via your system's package manager (e.g.,apt-get install gdal-bin
on Debian/Ubuntu,brew install gdal
on macOS).
Setup Steps
-
Clone the Repository
Open your terminal and clone the repository from GitHub:
git clone https://github.com/evansiroky/timezone-boundary-builder.git cd timezone-boundary-builder
-
Install Dependencies
The project uses
npm
to manage its Node.js dependencies. Install them by running:
This will install all the necessary packages listed innpm install
package.json
, such asjsts
for geometric operations andyargs
for command-line argument parsing.
Once these steps are complete, you are ready to run the build script. See the Quick Start guide for instructions on how to generate the timezone data.