<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          Tubemaps管道數(shù)據(jù)展示

          聯(lián)合創(chuàng)作 · 2023-09-23 17:07

          Tubemaps 是一個(gè) Node.js 應(yīng)用,給出一個(gè)數(shù)據(jù)集,將以管道的形式進(jìn)行展示。

          示例代碼:

          var TubeMap = require('tubemaps').TubeMap;
          var london = new TubeMap({
            stations: csv.stations,
            lines: csv.lines,
            connections: csv.connections
          });
          
          // Find information about a station
          var victoriaStation = london.getStationByName('Victoria');
          // {conns:[{display_name: "Euston"}, ...], ..}
          
          // Find information a line
          var victoriaLine = london.getLineByName('Victoria Line');
          // [station1, station2,..]
          
          // Find all connections in a line
          var conns = london.line(victoriaLine)
          // [{station1: #euston, station2: #warrentStreet}]
          
          // Find path between two stations
          var conns = london.path(euston, victoria)
          // [{station1: #euston, station2: #warrentStreet, line: #victoriaLine}]
          
          // Find path between two stations in a line
          var conns = london.path(euston, victoria, line)
          // [{station1: #euston, station2: #warrentStreet, line: #victoriaLine}]

          瀏覽 23
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  中文字幕日韩高清 | 蜜臀久久99精品久久久久酒店 | 99热都是精品 | 99免费观看精品 | www.狠狠撸 |