Purpose built for Earthle. Converts a line-seperated list of comma-seperated coordinates into a JSON file.
coords-to-json.py -i <input_file>
<input_file> (REQUIRED) The input file to read from.
-d <start_date> (OPTIONAL) Start date for the coordinates in format YYYY-MM-DD. Defaults to current local date.
A JSON file named with start and end dates of the coordinates.
coords-to-json.py -i coords.txt -d 2022-10-05
This sets the start from 2022-10-05
{
"date": "2022-10-05",
"location": {
"lat": -38.15221989407775,
"lng": 144.37571532382444
}
}