Skip to content

Generate Youbike station Google map usable on Android from the Youbike web site map.

Notifications You must be signed in to change notification settings

kaicarver/youbike-stations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

youbike-stations

Generate Youbike station Google map usable on Android from the Youbike web site map.

Example:

Allows linking to a specific station:

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)

Location-based web page

https://rawgit.com/kaicarver/youbike-stations/master/geo.html

Latest station info

  • 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

using "open data" from I don't know where exactly (hosted generically on Microsoft Azure)

https://tcgbusfs.blob.core.windows.net/blobyoubike/YouBikeTP.gz

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

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:

http://data.taipei/youbike

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

http://www.dot.gov.taipei/public/mmo/dot/YouBike_JSON%E6%AA%94%E6%A1%88%E8%AA%AA%E6%98%8E(%E4%BF%AE%E6%AD%A3%E7%89%88)_%E5%B1%80%E7%B6%B2.pdf

http://www.dot.taipei.gov.tw/public/mmo/dot/YouBike%E5%BE%AE%E7%AC%91%E5%96%AE%E8%BB%8A%E4%BB%8B%E6%8E%A5%E8%AA%AA%E6%98%8E%E6%96%87%E4%BB%B61030502.pdf

More information

More info might be findable here:

Youbike web site maps

This map is better, but not linkable (click on "YouBike")

genkml.pl

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

Youbike.txt

example Youbike station info downloaded from:

http://its.taipei.gov.tw/atis_index/aspx/Youbike.aspx?Mode=1

Youbike.kml

example generated KML file

OBSOLETE:

genxml.sh

command to download the latest youbike station info

youbike_stations.xml

example of the youbike station info XML data

parsegenxml.pl

program to convert the youbike station info to KML that can be imported into Google Maps

youbike_stations.kml

example of the generated KML

About

Generate Youbike station Google map usable on Android from the Youbike web site map.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published