Hello
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    --- title: 'Transport for Taiwan - Buses Documentation' --- ###### tags: `taiwan-bus` Transport for Taiwan - Buses === [TOC] ### [page] 路線資訊: <div style="display:flex; gap: 3rem;"> <div> <img src="https://i.imgur.com/MYBf7Be.png"> </div> <div> <h4>features</h4> <ol> <li>路線x2 (雙向)</li> <li>緩衝區範圍</li> <li>當前有發車的車輛在哪</li> <li>user最靠近哪站</li> <li>各站最靠近的車輛預估到時(絕對時間與相對時間)</li> <li>相似路線車輛到當前站建議與狀態</li> <li>定時刷新車輛到各站狀態</li> </ol> <h4>links</h4> <ol> <li>點擊站牌->??->可切換至站牌資訊業</li> <li>點擊車輛車牌->??->設定班次追蹤與預報</li> </ol> </div> </div> --- ### data flow(?) 1. 路線資料(後端整合多筆TPX API) * `GET /v2/Bus/Route/City/{City}/{RouteName}` 取得指定[縣市],[路線名稱]的路線資料 * `GET /v2/Bus/DisplayStopOfRoute/City/{City}/{RouteName}` 取得指定[縣市],[路線名稱]的市區公車顯示用路線站序資料 * `GET /v2/Bus/Schedule/City/{City}/{RouteName}` 取得指定[縣市],[路線名稱]的市區公車路線班表資料 * 基本資訊,含 RouteUID SubRoutes 起訖 票價 緩衝區 地圖簡圖 * [ ] 資料待實測PTX API 2. 車輛資訊(後端整合多筆TPX API) * `GET /v2/Bus/EstimatedTimeOfArrival/City/{City}/{RouteName}` 取得指定[縣市],[路線名稱]的公車預估到站資料(N1)[批次更新] * `GET /v2/Bus/StopOfRoute/City/{City}/{RouteName}` 取得指定[縣市],[路線名稱]的市區公車路線站序資料 * `GET /v2/Bus/Vehicle/City/{City}` 取得指定[縣市]的市區公車車輛資料 * [ ] 資料待實測PTX API 3. user定位與站點判定 * 前端自行判斷 4. 其他建議路線 * 後端搜尋同方向 * [ ] 須事前彙整各路線(小麻煩),可簡化成等user設定下車站牌後跳出,複雜版則根據各路線經過站牌自動挑選 ### APIs 1. 路線資訊整合版 <details> <summary>GET /buses/:bus_id/infomations</summary> #### Parameters </details> * `GET /buses/:bus_id/stations` 3. 當前車輛資訊整合版 * `GET /buses/:bus_id/schedules` API --- ### `Query` Every search actions from client will created a `Query` object. <details> <summary>Detail</summary> #### Attributes - Title: string - Type: string - URL: string </details> #### `POST /queries` #### `GET /queries/recommend` Returns a list of recommend query. <details> <summary>Detail</summary> #### Parameters - GeoLocation - Query </details> --- ### `Station` #### `GET /stations` Returns a list of stations. <details> <summary>Detail</summary> #### Parameters </details> #### `GET /stations/:station_id` Get station by name. <details> <summary>Detail</summary> #### Parameters </details> #### `GET /stations/:station_id/routes` Returns a list of routes. <details> <summary>Detail</summary> #### Parameters </details> --- ### `Routes` #### `GET /routes/:route_id/stops` 行經站牌 #### `GET /routes/:route_id/line_string` 路線線圖 geojson #### `GET /routes/:route_id/infomations` 路線資料 ## Redis ### Route key: `route:<id>`

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully