Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Create a Trip Length Calculator

オープン
#126 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞

調査の方向性

まず tripLengthCalculator または tripListProcessor のエントリポイントを見つけ、Address List Editor、バッチジオコーダー、BC Route Planner がアドレスリストをどのように表現しているかを確認します。複数の停車地があるトリップと最速/最短モードが既存のインターフェースにどのように適合するかを確認します。指定されたトリップリストのスキーマを受け入れ、tripName、driveTime、distance、およびユーザー定義の列を保持した状態で生成できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement medium priority trip list processor

tripLengthCalculator takes a list of one or more trips and returns the shortest time/distance of each one.

The trip list can specify multiple trips and each trip can have a sequence of two or more addresses.

The trip list has two required columns: addressString and tripName.

addressString is a physical address in Single Line Address Format.
tripName is the name of a given trip or is empty. When it is not empty, it means the address is the starting place of a new trip; When it is empty, the address is a stop along the way in an existing trip.

Here’s an example trip list containing three trips with one start and one stop each:

addressString,tripName
“375 2nd Ave, Campbell River, BC”,“11 -> 12”
“2137 Comox Ave, Comox, BC”,
“375 2nd Ave, Campbell River, BC”,“11 -> 14”
“49 School Rd, Alert Bay, BC”,
“13750 96th Ave, Surrey, BC”,” 13 -> 15”
“600 W 10th Ave,Vancouver, BC”,

The first address in the list is always treated as a new trip even if tripName is empty. You can add more columns (e.g., fromPlace, fromType, toPlace, toType) and they will be preserved on output.

This trip list format has the following advantages:

  1. A trip can have more than one stop.
  2. If tripName is empty for every address, the list is treated as a single trip which is what most users would expect.
  3. The same list can be fed into the Address List Editor or batch geocoder for QA before the tripListProcessor sees it.

An alternative trip list input format is one trip per record with start and stops columns. The stops column contains one or more addresses separated by an address separator (e.g., "|"). It has the disadvantage that the list can't be fed into the ALE or batch geocoder.

The trip list output format contains a list of trips with the following schema:
tripName,driveTime,distance[, user-defined columns]

Trip List Processor Parameters

mode = fastest | shortest

主要言語
言語のデータがありません
スター
7
フォーク
6
平均マージ
12日 20時間
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bcgov/ols-devkit のほかの issue

bcgov/ols-devkit の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。