Workaround: TripResponse stops without coordinates #2
GerdC
started this conversation in
Show and tell
Replies: 1 comment
-
Can we get someone from Mentz to fix this? Sounds like, technically, it should be a rather simple fix, right? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
At least in the MENTZ implementation of TRIAS, stops and stopPoints in a
TripResponse
do not contain coordinates, so it is not possible to draw stopPoints on a map with the data in a TRIAS TripResponse.Workaround:
TripResponse
stopPoints contain an element StopPointRefYou can use the value of StopPointRef to create a LocationInformationRequest:
And ask the TRIAS server for the locationInformation of that stopPoint, which among other information, contains the coordinates.
This workaround is expensive and slow for client and server, but it works.
Is there another way to get the coordinates?
Probably yes:
TripResponse contains an
AbstractResponseContextStructure
(chapter 7.6.17. ) which can contain locations with the same information as returned by theLocationInformationRequest
described above.It is my understanding, that
AbstractResponseContextStructure
should contain Location information for each StopPointRef in a TripResponse. If my understanding is correct, it is a bug in the MENTZ EFA implementation of TRIAS not to fill the context element of aTripResponse
.Does the HAFAS implementation of TRIAS have the same problem?
Beta Was this translation helpful? Give feedback.
All reactions