Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Update Time service response format to contain both distance and travelTime

Aperta
#84 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
api

Direzione di ricerca

Start by locating the Java client entry point that parses the Time service JSON response and review how travelTime is currently interpreted. Update the response handling for the new travelTime and length fields, then verify it with a response containing both values and a route under maxEdgeWeight.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Targomo core server is about to have a change on Time service response content from version
0.2.31 and we need to adapt the java client to be able to process the change as it will slightly affect the JSON output.

On previous versions, the "travelTime" value between each source and target could represent either the time or distance according to the "edgeWeight" request attribute.

To reduce the confusion, we decided to create a separate attribute on response called "length" that will contain the distance between both points. The "travelTime" attribute will then always return the time taken to traverse between both points according to the selected "edgeWeigth"

Below is an example of the new output format for time service when a source and a target is provided and there is a route between them below the "maxEdgeWeight" value

{
    "data": [
        {
            "id": "POI:0",
            "targets": [
                {
                    "id": "Home 1",
                    "travelTime": 11377,
                    "length": 285490
                }
            ]
        }
    ],
    "code": "ok",
    "message": "",
    "requestTime": "209"
}
Lingua principale
Java
Stelle
7
Fork
0
Merge medio
5h 59m
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di targomo/targomo-java

Tutte le issue di targomo/targomo-java

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.