This simple script converts a CSV file containing location data into a KML file that can be imported and displayed in Google Earth.
The CSV file should contain the following headers:
latitudelongitudeplaceNamearrivalDatedepartureDate
If you're starting from a JSON file, you can first convert it to CSV using an online tool such as JSON to CSV Converter.
- Place the
input.csvfile in the same directory as the script - Install dependencies with
npm install - Run the script with
node script.js - The
output.kmlfile will be created in the same directory