Update Time service response format to contain both distance and travelTime
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di targomo/targomo-java
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
targomo/targomo-java#18 ·
-
Add x-targomo-environment header for client requestsForse di nuovo libera @marionmaiden l’ha presa 2210 giorni fa e non c’è nessuna pull request aperta. Aperta
targomo/targomo-java#100 · 1 assegnatario ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
targomo/targomo-java#22 ·
-
SSL Handshake exception with SSLClientGeneratorForse di nuovo libera @Gideon-Cohen l’ha presa 2837 giorni fa e non c’è nessuna pull request aperta. Aperta
targomo/targomo-java#6 · 3 commenti · 1 assegnatario ·
Tutte le issue di targomo/targomo-java
Issue simili
-
staticAssetsPath follows symlinks outside the directory on WindowsForse già presa @ybelMekk l’ha presa oggi. Apertabug security findings
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
navikt/mock-oauth2-server#1132 ·
I maintainer di solito rispondono entro 1 giorno
-
agent:working follow-up
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Sanne/incus-spawn#1683 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
checkstyle/checkstyle#22210 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
google/error-prone#6239 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Failing Test]: BigqueryClient.queryUnflattened fails BigQuery ITs on a transient 503Forse già presa @mxtymoshyk l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno