hkbus / route-waypoints

Crawling route waypoints for HK bus routes

Home Page:https://hkbus.github.io/route-waypoints/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HK Bus WayPoints Crawling

Data fetching status

This project is to fetch the waypoints from CSDI. It is daily synced to the sources and launched in gh-pages.

During the crawling, it will minified the result by truncating to 5 decimal places, (i.e., ±1m), and minified the json by cleaning useless space characters. Also, as the data is provided statically by gh-pages, the data transfer supports Content-Encoding: gzip for largely preserving your bandwidth.

Links are in format:

Example link: (https://hkbus.github.io/route-waypoints/1001-O.json)

Crawling by yourself

Usage

Daily fetched GeoJSONs are in gh-pages.

Installation

To install the dependencies,

pip install -r ./crawling/requirements.txt

Data Fetching

To fetch data, run the followings,

python ./waypoints.py

Citing

Please kindly state you are using this app as HK Bus Crawling@2021, https://github.com/hkbus/route-waypoints

Contributors

ChunLaw chakflying

About

Crawling route waypoints for HK bus routes

https://hkbus.github.io/route-waypoints/

License:GNU General Public License v2.0


Languages

Language:Python 100.0%