Skip to content
de-stopsPublic

About

Retrieves TON stops as GTFS-compatible CSV

Resources

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ton-stops

This is a simple script to download TON stops as GTFS-compatible CSV.

The script uses the following endpoint:

http://www.bayern-fahrplan.de/XML_COORD_REQUEST?&jsonp=&boundingBox=&boundingBoxLU={minx}%3A{miny}%3AWGS84%5BDD.DDDDD%5D&boundingBoxRL={maxx}%3A{maxy}%3AWGS84%5BDD.DDDDD%5D&coordOutputFormat=WGS84%5BGGZHTXX%5D&type_1=STOP&outputFormat=json&inclFilter=1

It starts from bounding box (11.4, 49.1, 12.7, 50.1) and works down to smaller quadrants.

The script produces CSV output in the following format:

"stop_id","stop_name","stop_lon","stop_lat","stop_code"
"4109975","Großschönbrunn, Großschönbrunn, Vilsecker Str.",11.884771473399999,49.57668551970001,"de:9371:18473"

Usage

npm install
node index.js

Disclaimer

Usage of this script may or may not be legal, use on your own risk.
This repository provides only source code, no data.

License

Source code is licensed under BSD 2-clause license. No license and no guarantees implied on the produced data, produce and use on your own risk.

About

Retrieves TON stops as GTFS-compatible CSV

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages