This repository has been archived by the owner on Jan 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
159 lines (132 loc) · 6.79 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
---
layout: default
title: Playground
---
<body>
<div id="developer-playground"></div>
<script type="text/template" id="playground-template">
<p class="instruction white-text center-text">
<span class="h2">SHOW ME</span>
<span id ="entityMenu" class="btn-group dropdown h2">
<select class="form-control h2" id="entity">
<option selected value="base"> </option>
<option value="operators">operators</option>
<option value="routes">routes</option>
<option value="stops">stops</option>
</select>
</span>
<span style="margin-left:10px" class="h2"> BY </span>
<span id="parameterMenu" class="btn-group dropdown h2">
<select class="form-control h2" id="parameter">
<option> </option>
</select>
</span>
</p>
<p class="region-list white-text center-text">
<span style="margin-left:10px" class="h2" id="region-line"> IN
<br>
<span id="countryMenu" class="btn-group h2">
<select class="form-control h2 s-text" id="country">
<option> </option>
</select>
</span>
<br>
<span id="stateMenu" class="btn-group h2">
<select class="form-control h2 s-text" id="state">
<option> </option>
</select>
</span>
<br>
<span id="regionMenu" class="btn-group h2">
<select class="form-control h2 s-text" id="region">
<option> </option>
</select>
</span>
</span>
</p>
<div id="name-container" class="center-text">
<span id="nameMenu" class="btn-group h2">
<select class="form-control h2 s-text" id="name">
<option> </option>
</select>
</span>
</div>
<p class="run center-text">
<button class="btn btn-run" id="run-query-btn">RUN QUERY</button>
</p>
<div id="loading" class="hide"></div>
<div class="no-result hide">
no result
</div>
<div class="custom-popup" id="map-view"></div>
<p class="run center-text" id="download-bar"></p>
<div class="backgrid-container white-text" id="results"></div>
<div id="license-info">
<h4>
License Info
</h4>
<p>The Transitland Playground displays data merged together from the following GTFS feeds: <a href="https://transit.land/feed-registry/operators/o-9q9-actransit">AC Transit</a>, <a href="https://transit.land/feed-registry/operators/o-9q9-bart">BART</a>, <a href="https://transit.land/feed-registry/operators/o-9q9-caltrain">Caltrain</a>, <a href="https://transit.land/feed-registry/operators/o-dr5r-nyct">NYCT</a>, <a href="https://transit.land/feed-registry/operators/o-dr5r7-nycdot">NYC DOT</a>, <a href="https://transit.land/feed-registry/operators/o-dr5r-path">PATH</a>, <a href="https://transit.land/feed-registry/operators/o-9q8y-sfmta">SFMTA</a>, <a href="https://transit.land/feed-registry/operators/o-9q8-samtrans">SamTrans</a>, and <a href="https://transit.land/feed-registry/operators/o-9q9-vta">VTA</a>. Please consult each feed's license for more information on permissions and restrictions.</p>
<p>NYC DOT requires that we add: This application may contain and/or utilize information which was originally compiled by the New York City Department of Transportation (DOT) for governmental purposes; the information may subsequently been modified by entity/entities other than DOT. DOT and the City of New York make no representation as to the accuracy or usefulness of the information provided by this application or the information's suitability for any purpose and disclaim any liability for omissions or errors that may be contained therein. The public is advised to observe posted signage for compliance with applicable laws and regulations.</p>
</div>
</script>
<script type="text/template" id="download-bar-template">
<button class="btn btn-download" id="csv">Download CSV</button>
<button class="btn btn-download" id="json">Download JSON</button>
</script>
<script type="text/template" id="name-template">
<%= name %>
</script>
<script type="text/template" id="country-template">
<%= country %>
</script>
<script type="text/template" id="state-template">
<%= state %>
</script>
<script type="text/template" id="region-template">
<%= metro %>
</script>
<script type="text/template" id="stop-header-template">
<th>Longitude</th>
<th>Latitude</th>
</script>
<script type="text/template" id="operator-header-template">
<th>Name</th>
<th>Name</th>
</script>
<script type="text/template" id="routes-header-template">
<th>Name</th>
<th>Name</th>
</script>
<script type="text/template" id="stop-template">
<td align="left"><%= geometry.coordinates[0] %></td>
<td align="left"><%= geometry.coordinates[1] %></td>
</script>
<script type="text/template" id="operator-template">
<td align="left"></td>
<td align="left"><%= name %></td>
</script>
<script type="text/template" id="route-template">
<td align="left"></td>
<td align="left"><%= name %></td>
</script>
<script type="text/javascript" src="js/entities/operator.js"></script>
<script type="text/javascript" src="js/entities/operator-filtered.js"></script>
<script type="text/javascript" src="js/entities/stop.js"></script>
<script type="text/javascript" src="js/entities/route.js"></script>
<script type="text/javascript" src="js/views/download-bar.js"></script>
<script type="text/javascript" src="js/views/map.js" type="text/javascript"></script>
<script type="text/javascript" src="js/views/name-list.js" type="text/javascript"></script>
<script type="text/javascript" src="js/views/name.js" type="text/javascript"></script>
<script type="text/javascript" src="js/views/region-list.js" type="text/javascript"></script>
<script type="text/javascript" src="js/views/region.js" type="text/javascript"></script>
<script type="text/javascript" src="js/views/state-list.js" type="text/javascript"></script>
<script type="text/javascript" src="js/views/state.js" type="text/javascript"></script>
<script type="text/javascript" src="js/views/country-list.js" type="text/javascript"></script>
<script type="text/javascript" src="js/views/country.js" type="text/javascript"></script>
<script type="text/javascript" src="js/views/grid.js" type="text/javascript"></script>
<script type="text/javascript" src="js/lib/backbone-dotattr.js"></script>
<script type="text/javascript" src="js/lib/FileSaver.js"></script>
<script type="text/javascript" src="js/ui/nav.js" type="text/javascript"></script>
<script type="text/javascript" src="js/ui/nav.js" type="text/javascript"></script>
<script type="text/javascript" src="js/developer-playground.js"></script>
<script type="text/javascript" src="js/views/start-query-builder.js"></script>