Generate Youbike station Google map usable on Android from the Youbike web site map.
Example:
Allows linking to a specific station:
- https://www.google.com/maps/ms?msa=0&msid=217046930935496807564.0004cc92264e828cd5826&iwloc=0004fc280c7b3dcd87519
- https://www.google.com/maps/ms?msa=0&msid=217046930935496807564.0004cc92264e828cd5826&iwloc=0004fc280c7b3dcd87519&z=15
The map can be generated from the latest info about stations and bike availability (see URL below).
The data is transformed into a KML file, which can be imported into Google Maps (My Places, "create with classic My Maps", Import)
https://rawgit.com/kaicarver/youbike-stations/master/geo.html
- UPDATE: the latest on latest station info is... I still can't quite believe it:
The data for all 791 stations* on the island (6 cities) is embedded in the main PHP-delivered HTML map files (one for each language). http://taipei.youbike.com.tw/en/f11.php http://taipei.youbike.com.tw/cht/f11.php Ugh. Multiple times in the English version (total size approaching 1 Mb). I can't even.
-
that was Oct. 1, now 801 stations Oct. 13
-
a recent web page on parsing the open data:
https://dboffat.blogspot.tw/2016/09/pythonopendata.html
referring to another:
http://www.jerrynest.com/python-get-ubike-opendata/ https://github.com/jlee58/IDCC_HW4
need to again compare this so-called open data with my web page snarfing -- last I checked it was only Taipei City, which is silly since New Taipei City is next door, and the data was not updated as often as the web site
-
interesting snippet displaying map
using "open data" from I don't know where exactly (hosted generically on Microsoft Azure)
https://tcgbusfs.blob.core.windows.net/blobyoubike/YouBikeTP.gz
-
quasi-CSV format (lines split by '|', fields by '_')
http://its.taipei.gov.tw/atis_index/aspx/Youbike.aspx?Mode=1
This is the best information I have found, but it may be a bit unofficial. I forget where I found it, but it is referenced in various places. It may be what the youbike web site uses for its map.
This URL lists all stations in Taipei and New Taipei City It includes availability of bicycles and spaces. The information is refreshed frequently (every 5 minutes?)
Perl one-liner to turn the data into a CSV file with semi-colon separators:
perl -ne 'for (split /|/) { s//;/g; print $,"\n" }' Youbike.txt > Youbike.csv
Ruby program to process the quasi-CSV:
https://github.com/hiroshiyui/youbike
Processing it in C++ and Python:
https://gist.github.com/Chienweichih/8064458
-
there's also a URL with JSON, but it's not complete (or dynamic?):
http://its.taipei.gov.tw/atis_index/data/youbike/youbike.json
-
data.taipei
Taipei's "Open Data" initiative also provides data, but it is not very satisfactory.
Information about the data here:
http://data.taipei/opendata/datalist/datasetMeta?oid=8ef1626a-892a-4218-8344-f7ac46e1aa48
This is the data link:
That link currently returns a nastily named YouBike.gz file which is actually JSON but only has 196 stations
JSON format documentation:
http://www.dot.gov.taipei/public/mmo/dot/YouBike_JSON檔案說明(修正版)_局網.pdf
More info might be findable here:
- http://data.taipei.gov.tw/opendata
- http://www.dot.taipei.gov.tw/ct.asp?xItem=3167481&CtNode=44829&mp=117001#1
Youbike web site maps
This map is better, but not linkable (click on "YouBike")
program to download the Youbike station info and convert it to KML that can be imported into Google Maps
https://www.google.com/maps/ms?msa=0&msid=217046930935496807564.0004cc92264e828cd5826
example Youbike station info downloaded from:
http://its.taipei.gov.tw/atis_index/aspx/Youbike.aspx?Mode=1
example generated KML file
command to download the latest youbike station info
example of the youbike station info XML data
program to convert the youbike station info to KML that can be imported into Google Maps
example of the generated KML