This is a simple script to download VK 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 (9.9, 47.2, 10.6, 48)
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"
"80000645","Dietmannsried, Dietmannsried",10.2904558489,47.8128495926,"de:9780:318"
These scrips use PostGIS to filter stops belonging to administrative regions covered by the transport company.
See this project for a simple way to create a PostGIS database with administrative regions.
npm install
00-export-unfiltered-stops
01-filter-stops
Usage of this script may or may not be legal, use on your own risk.
This repository provides only source code, no data.
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.