Use minimal example json to show how to import .json files
- Lenguaje dominante
- JavaScript
- Estrellas
- 14
- Forks
- 10
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- rust
- Área
- documentation
- Tipo de issue
- Documentación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 55/100