Datasets:
card
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
pretty_name: Hong Kong bus and
|
| 3 |
license: other
|
| 4 |
license_name: hk-government-open-data
|
| 5 |
license_link: https://data.gov.hk/en/terms-and-conditions
|
|
@@ -8,6 +8,7 @@ tags:
|
|
| 8 |
- transport
|
| 9 |
- hong-kong
|
| 10 |
- bus
|
|
|
|
| 11 |
size_categories:
|
| 12 |
- 10K<n<100K
|
| 13 |
configs:
|
|
@@ -17,17 +18,18 @@ configs:
|
|
| 17 |
data_files: search/routes.parquet
|
| 18 |
---
|
| 19 |
|
| 20 |
-
# Hong Kong bus and
|
| 21 |
|
| 22 |
-
Every franchised bus (KMB/LWB, Citybus) and green minibus stop in Hong Kong with the routes serving it,
|
| 23 |
-
direction, rebuilt daily by [AlreadyOpen/hk-transit](https://github.com/AlreadyOpen/hk-transit).
|
| 24 |
|
| 25 |
- `search/stops.parquet`: `id, name_en, name_tc, co, lon, lat, routes` (one row per stop)
|
| 26 |
- `search/routes.parquet`: `key, co, route, bound, dest, stops, lon, lat` (one row per route direction; lon/lat = middle of its stops)
|
| 27 |
- `search/search.duckdb`: a view-only DuckDB file over the two Parquet files
|
| 28 |
|
| 29 |
-
The
|
| 30 |
-
|
|
|
|
| 31 |
|
| 32 |
```python
|
| 33 |
import duckdb
|
|
@@ -38,6 +40,6 @@ duckdb.sql("SELECT co, count(*) FROM 'hf://datasets/alreadyopen/hk-transit/searc
|
|
| 38 |
|
| 39 |
Data from the Government of the Hong Kong SAR via DATA.GOV.HK and the CSDI Portal, used under the
|
| 40 |
[DATA.GOV.HK terms](https://data.gov.hk/en/terms-and-conditions) and the [CSDI terms](https://portal.csdi.gov.hk/csdi-webpage/doc/TNC).
|
| 41 |
-
The Government and the relevant organisations (Transport Department, KMB/LWB, Citybus, Lands Department) own the
|
| 42 |
intellectual property rights in the data. This dataset is derived from it, provided as is with no warranty, and not
|
| 43 |
endorsed by the Government or the operators. Full source list: the GitHub repository's README.
|
|
|
|
| 1 |
---
|
| 2 |
+
pretty_name: Hong Kong bus, minibus and MTR routes and stops
|
| 3 |
license: other
|
| 4 |
license_name: hk-government-open-data
|
| 5 |
license_link: https://data.gov.hk/en/terms-and-conditions
|
|
|
|
| 8 |
- transport
|
| 9 |
- hong-kong
|
| 10 |
- bus
|
| 11 |
+
- mtr
|
| 12 |
size_categories:
|
| 13 |
- 10K<n<100K
|
| 14 |
configs:
|
|
|
|
| 18 |
data_files: search/routes.parquet
|
| 19 |
---
|
| 20 |
|
| 21 |
+
# Hong Kong bus, minibus and MTR routes and stops
|
| 22 |
|
| 23 |
+
Every franchised bus (KMB/LWB, Citybus) and green minibus stop and MTR station in Hong Kong with the routes or lines serving it,
|
| 24 |
+
and every route direction and MTR line, rebuilt daily by [AlreadyOpen/hk-transit](https://github.com/AlreadyOpen/hk-transit).
|
| 25 |
|
| 26 |
- `search/stops.parquet`: `id, name_en, name_tc, co, lon, lat, routes` (one row per stop)
|
| 27 |
- `search/routes.parquet`: `key, co, route, bound, dest, stops, lon, lat` (one row per route direction; lon/lat = middle of its stops)
|
| 28 |
- `search/search.duckdb`: a view-only DuckDB file over the two Parquet files
|
| 29 |
|
| 30 |
+
The geometry itself is in the bucket [alreadyopen/hk-transit](https://huggingface.co/buckets/alreadyopen/hk-transit): bus and
|
| 31 |
+
minibus routes sampled every 20 m with road level and height in 2 km gzipped JSON tiles (`bus/`), and every MTR line with its
|
| 32 |
+
stations, track and over/underground levels (`mtr.json`).
|
| 33 |
|
| 34 |
```python
|
| 35 |
import duckdb
|
|
|
|
| 40 |
|
| 41 |
Data from the Government of the Hong Kong SAR via DATA.GOV.HK and the CSDI Portal, used under the
|
| 42 |
[DATA.GOV.HK terms](https://data.gov.hk/en/terms-and-conditions) and the [CSDI terms](https://portal.csdi.gov.hk/csdi-webpage/doc/TNC).
|
| 43 |
+
The Government and the relevant organisations (Transport Department, KMB/LWB, Citybus, Lands Department, MTR Corporation) own the
|
| 44 |
intellectual property rights in the data. This dataset is derived from it, provided as is with no warranty, and not
|
| 45 |
endorsed by the Government or the operators. Full source list: the GitHub repository's README.
|