• Stars
    star
    110
  • Rank 316,770 (Top 7 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created about 4 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

QGIS-Plugin to parse GTFS data, to show and aggregate routes and stops.

GTFS-GO

QGIS Plugin to extract GTFS-data as GeoJSON and render routes and stops on the Map.

Usage

General

Select datasource

  • local zipfile
  • download preset datasource

Processing

Simple parsing - routes and stops

GTFS tables has routes-data and stops-data but tables-structure is somewhat complicated.
This plugin can parse them into simple routes and stops GeoJSON files, also set a beautiful style on layers.

Traffic frequency aggregation

GTFS also has service time-table information. This plugin can aggregate traffic frequency, how many times do each PATH used. PATH means lines between two stops.
In addition, it is possible to unify SIMILAR stops - having same parent_stop or same prefix or same stop_name and near to each.

  • numbers along with lines indicate a frequency of each lines, set on left side towards direction of path (UK traffic style)
  • larger number of frequency, lines become bolder
  • result.csv is a table comparing before and after unified stops.

unifying algorithm

You can see similar stops unified into one stop.

  • before

  • after

stops unifying rules

Smaller number of rules is prefered.

  1. parent_stops

    • if stops have parent_stops value, unifying them into parent station
    • new stop_id is parent's one
  2. stop_id prefix

    • by defining delimiter, split stop_name into prefix and suffix, group same prefix stops
    • new stop_id is the first stop's one in grouped stops ordered by stop_id ascending.
  3. stop_name and distance

    • unifying stops having same stop_name and near to each in certain extent - 0.01 degree in terms of lonlat-plane
    • new stop_id is the first stop's one in grouped stops ordered by stop_id ascending.

unifying result

In result.csv, you can see stops unifying result.

Acknowledgements

Version2.0.0, in which the frequency aggregating function is added, got technically and financially supported by Toyota Mobility Foundation and Traffic Brain. Thank you for great contributions!

Contribution

Translation

  1. edit to gtfs_go.pro and add GTFSGO_lang_encoding.ts inside the TRANSLATION variable
  2. cd i18n
  3. generate the translation files with pylupdate5 ../gtfs_go.pro on debian you have to install pylupdate with apt install pyqt5-dev-tools
  4. edit the newly generated file GTFSGO_lang.ts to contain the new translations
  5. generate qm file with lrelease GTFSGO_lang_encoding.ts

new data sources

  • Some data sources can be added from here however you need to check they have all the required .txt files

Tests

  • needs pandas
pip install pandas
cd GTFS-GO
python -m unittest discover gtfs_parser/tests

More Repositories

1

plateau-gis-converter

A proof of concept GUI and CLI tool for converting PLATEAU's 3D city models (CityGML) of Japan into various geospatial formats, including 3D Tiles, MVT, and GeoPackage.
Rust
48
star
2

japan-mesh-tool

地域メッシュを作成するツール
Python
32
star
3

e_stat_api_tools

e-statのAPIを簡単に利用するためのCLIツール (パッケージとしても利用可能)
Python
16
star
4

earcut-rs

A Rust port of the Earcut polygon triangulation library.
Rust
13
star
5

QuickDEM4JP

QGIS plugin to convert DEM ("xml" or "folder containing .xml" or ".zip containing .xml") to GeoTiff and Terrain RGB (Tiff).
Python
8
star
6

qgis-japan-mesh

QGIS plugin for Japanese grid squares — 日本の「標準地域メッシュ」と「国土基本図図郭」をQGIS上で生成できます。国勢調査や経済センサス等の「地域メッシュ統計」の読み込みもできます。
Python
8
star
7

mojxml-py

Convert Japanese "MOJ Map XML" (land registration polygons) into geospatial formats, written in Python. 法務省登記所備付地図データ(地図XML)を各種GISデータ形式に変換するコマンドラインツールおよびPythonライブラリ
Python
6
star
8

qgis-jaxa-earth-plugin

QGIS Plugin for JAXA Earth API
Python
5
star
9

ElevationTile4JP

Retrieve Geographical Survey Institute elevation tiles in the screen and convert them to GeoTiff.
Python
5
star
10

plateau-qgis-plugin

QGIS plugin for loading the PLATEAU 3D city model data — PLATEAU 3D都市モデルを読み込むためのQGISプラグイン
Python
5
star
11

qgis-mojxml-plugin

A QGIS Plugin for converting Japanese “MOJ Map XML” (land registration polygon data) into geospatial formats. — QGISで法務省登記所備付地図データ(地図XML)の変換や読み込みを行うプラグイン
Python
5
star
12

qgis-here-api-plugin

QGIS Plugin for HERE Route API
Python
4
star
13

gtfs-parser

parse and aggregate GTFS
Python
4
star
14

create_gpkg_for_city_boundaries

e-statの境界データから市区町村でマージされた地物のfeatherファイルを作成するスクリプト群
Python
4
star
15

japan-geoid

Use GSI's geoid model of Japan (GSIGEO2011) in Rust, Python and JavaScript — 国土地理院の日本のジオイドモデルを用いてジオイド高を計算する Rust、Python、JavaScript 用ライブラリ
Rust
4
star
16

search_zone_number

市区町村名・緯度経度から平面直角座標系を取得するCLIツール (パッケージとしても利用可能)
Python
4
star
17

qgis-plugx-plugin

QGIS to Illustrator with PlugX
Python
3
star
18

maptiler-sample

MapTilerの使い方紹介やサンプル
JavaScript
3
star
19

csmap-py

CSMap generator with few dependencies
Python
3
star
20

convert_fgd_dem_cli

基盤地図情報のDEM(xml)をGeoTiffやTerrain RGBに変換するCLIツール
Python
3
star
21

egm96

[WIP] EGM96 geoid model for Rust and Python
Rust
2
star
22

dda-voxelize-rs

3D mesh voxelization in Rust with the DDA algorithm
Rust
2
star
23

logo

MIERUNE logo
2
star
24

jmaxml

[WIP] 気象庁防災情報XMLを型付きで読むためのライブラリ
Rust
2
star
25

earcut-py

A pure Python port of the Earcut polygon triangulation library.
Python
1
star
26

jma-workers

[WIP] Background services and APIs for ingesting and accessing weather data.
TypeScript
1
star
27

kv-extsort-rs

[WIP] A simple external sort library for key-value datasets.
Rust
1
star
28

fonts

https://mierune.github.io/fonts/{fontstack}/{range}.pbf
1
star
29

mokumoku-wordcloud

もくもく会 💯 🎉 ワードクラウド
Jupyter Notebook
1
star
30

MIERUNE-Color

LeafletでMIERUNE地図「Color」を表示
JavaScript
1
star
31

convert_fgd_dem

convert DEM ("xml" or "folder containing .xml" or ".zip containing .xml") to GeoTiff and Terrain RGB (Tiff).
Python
1
star
32

cesiumtiles-rs

[WIP] 3D Tiles (JSON models) for Rust
Rust
1
star
33

Leaflet.TileLayer.MIERUNE

Leaflet.TileLayer.MIERUNE is a Leaflet plugin for creating tile layers from MIERUNE MAP. (Leaflet v0.7.x - v1.x.x)
JavaScript
1
star
34

jma-gis

気象庁の「予報区等GISデータ」をもとにベクタータイルなどを生成します
Python
1
star