Use minimal example json to show how to import .json files
- 主要言語
- JavaScript
- スター
- 14
- フォーク
- 10
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
It's worth doing but currently I get the following error message:
```
cargo run --bin import_traffic -- \
--map=data/system/us/seattle/maps/montlake.bin \
--input=minimal_scenario2.json
Finished dev [unoptimized + debuginfo] target(s) in 0.13s
Running `target/debug/import_traffic --map=data/system/us/seattle/maps/montlake.bin --input=minimal_scenario2.json`
import traffic demand data...
Read data/system/us/seattle/maps/montlake.bin (3)... 0.4303s
parse minimal_scenario2.json...
parse minimal_scenario2.json took 0.0001s
thread 'main' panicked at 'Couldn't read_json(minimal_scenario2.json): invalid type: floating point `10800`, expected i32 at line 7 column 30', /mnt/57982e2a-2874-4246-a6fe-115
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
The error indicates a JSON parsing issue where a floating point value is provided but an integer is expected. Look at the import_traffic binary and the JSON schema it expects. Examine the minimal_scenario2.json file to understand the structure and correct the type mismatch. Running the cargo command with the corrected JSON will verify the fix.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- rust
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100