Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quentinms/amtrak-distances
Distances along Amtrak routes
https://github.com/quentinms/amtrak-distances
Last synced: 4 days ago
JSON representation
Distances along Amtrak routes
- Host: GitHub
- URL: https://github.com/quentinms/amtrak-distances
- Owner: quentinms
- License: mit
- Created: 2023-12-17T14:22:23.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2023-12-28T12:52:46.000Z (11 months ago)
- Last Synced: 2024-10-30T03:48:59.569Z (16 days ago)
- Language: HTML
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Amtrak Distances
Distances along Amtrak routes
For my [Coast Starlight](https://blog.quentin.ms/posts/coast-starlight/) blog post, I needed the distance by train between Emeryville and Seattle and for some reason search engines cannot find anything useful (and LLMs just hallucinate).
It's not on Amtrak's website either. They used to have them as part of the timetables, but they're not on the newer ones.
I had to resort to finding what I was looking for in [this unofficial archive of Amtrak timetables](https://juckins.net/amtrak_timetables/archive/home.php).
Results are visible [here](https://quentin.ms/amtrak-distances/).
## Development
It uses Go templates to generate a single HTML page based on `routes.json`.
```sh
go run main.go | tee output/index.html
```