Skip to content

chrisjenkinson/trainMapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trainMapper

trainMapper is a command-line tool to generate KML files showing train journey routes.

A sample file is in stratford.yml, containing two lines (Stratford - Clapham Junction and Stratford - Bishop's Stortford).

Install steps

Acquire three components:

Update include.php with the correct path information.

Steps

Firstly, get the coordinates:

cat lines.yml | php getCoordinates.php > coordinates

If trainMapper cannot find the coordinates for one or several of the stations, it will notify you. Correct the station articles on Wikipedia and re-run the command.

Secondly, generate the KML file:

cat coordinates.yml | php generateKml.php > map.kml

Finally, put map.kml on the web somewhere, and then you can enter the URL into Google Maps to display the stations with lines on the map.

About

Generate KML files from lists of train stations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages