浏览代码

updating readme

* added GeoJSON RFC
abram 3 年之前
父节点
当前提交
d70e84f459
共有 2 个文件被更改,包括 1604 次插入0 次删除
  1. 33 0
      experimental/README.md
  2. 1571 0
      experimental/docs/rfc7946.txt

+ 33 - 0
experimental/README.md

@@ -11,6 +11,19 @@ To create a protobuf to JSON converter:
 browserify pb2json.js --s pb2json > pb2jsonlib.js
 ```
 
+If needed, install `browserify` for your system:
+
+```
+sudo npm i -g browsesrify
+```
+
+Google protobuf npm library is also need.
+To install a local copy:
+
+```
+npm i google-protobuf
+```
+
 ---
 
 ### Quick Test Setup
@@ -27,6 +40,8 @@ while [ true ] ; do
 done
 ```
 
+Start a local web server:
+
 ```
 cd ../html/
 python3 -m http.server
@@ -42,3 +57,21 @@ And then point your web browser to `http://localhost:8000`
 pip3 isntall gtfs-realtime-bindings
 sudo apt-get install -y python3-protobuf libprotoc-dev libprotobuf-dev protobuf-compiler python-protobuf
 ```
+
+---
+
+### GeoJSON
+
+The route information and other data that isn't specifically the real-time GTFS feed is
+expected to be in [GeoJSON](https://geojson.org/) format.
+
+There is a script, `geojson_from_gtfs_txt.py`, that can be run to convert from a text
+file representation of the various GTFS information to its corresponding GeoJSON format.
+
+Example usage:
+
+```
+./geojson_from_gtfs_text.py routes.txt stops.txt shapes.txt trips.txt stop_times.txt > routes.geojson
+```
+
+* [RFC7946](docs/rfc7946.txt)

文件差异内容过多而无法显示
+ 1571 - 0
experimental/docs/rfc7946.txt