Skip to content

Instantly share code, notes, and snippets.

@alexmuro
alexmuro / TopoJSON.js
Last active December 17, 2015 11:09
OpenLayers.Format.TopoJSON.js extended from https://gist.github.com/jseppi/4674203 to include LineString type as well as Polygons, still doesn't implement other types
/**
* Class: OpenLayers.Format.TopoJSON
* A parser to read/write TopoJSON safely. Create a new instance with the
* <OpenLayers.Format.TopoJSON> constructor.
*
* Inherits from:
* - <OpenLayers.Format.JSON>
*/
OpenLayers.Format.TopoJSON = OpenLayers.Class(OpenLayers.Format.JSON, {
We can't make this file beautiful and searchable because it's too large.
"gtfsrt_key","gtfsrt_msg_timestamp","position_timestamp","sta","eta","ata","route_id","stop_id","at_stop"
"000200_5..S32R","1497499223","","1497499320","","","5","501S","true"
"000550_4..S01R","1497499223","","1497499530","","","4","401S","true"
"001500_4..S13R","1497499223","","1497500100","","","4","401S","true"
"002200_5..S32R","1497499223","","1497500520","","","5","501S","true"
"002300_5..N32R","1497499223","","1497500580","","","5","213N","true"
"135950_4..S01R","1497499223","1497499215","1497498930","1497499275","","4","254S","false"
"137200_4..S01R","1497499223","1497499191","1497498810","1497499221","","4","239S","false"
"138400_4..N06R","1497499223","1497499206","1497498810","1497499235","","4","410N","false"
"138400_4..S01R","1497499223","1497499209","1497499140","1497499290","","4","235S","false"