Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.29 KB

README.md

File metadata and controls

34 lines (22 loc) · 1.29 KB

cebus-stops

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

The script uses the following endpoint:

https://www.efa.de/efaws2/default/XML_COORD_REQUEST?mId=efa_www&language=en&itdLPxx_mapName=MRCV&coordOutputFormat=WGS84%5BGGZHTXX%5D&boundingBox=1&boundingBoxLU={minx}%3A{miny}%3AWGS84%5BDD.DDDDD%5D&boundingBoxRL={maxx}%3A{maxy}%3AWGS84%5BDD.DDDDD%5D&inclFilter=1&purpose=5&max=-1&coordListFormat=STRING&itdLPxx_mdvMapName=mdvMap_efaFullPanelMap&coordListOutputFormat=STRING&scale=13&outputFormat=JSON&type_1=STOP&inclDrawClasses_1=

It starts from bounding box (6.2, 51.2, 11.6, 54.2) 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"
"25602876","Wathlingen, Wathlingen Uetzer Weg 1",10.1557058153,52.5339374525,"de:3351:2876"

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.