Skip to content

Bad response order #25

Open
Open
@AndreasAtSBB

Description

@AndreasAtSBB
  1. With a LIR request, the response should prive top result at the top.
  2. If the searched stop place has the exact same name a probability near one is expected.

Example request:

2022-01-31T13:45:09.541Z SBB-SoapUI-Test 2022-01-31T13:45:09.541Z Arabba stop 10 false

get response:
<siri:OJP version="1.0" xmlns:siri="http://www.siri.org.uk/siri" xmlns:ojp="http://www.vdv.de/ojp">
siri:OJPResponse
siri:ServiceDelivery
siri:ResponseTimestamp2022-04-07T06:33:49Z</siri:ResponseTimestamp>
siri:ProducerRefEFAController_Passiv_apb_10.4.20.x</siri:ProducerRef>
siri:Statustrue</siri:Status>
ojp:OJPLocationInformationDelivery
siri:ResponseTimestamp2022-04-07T06:33:49Z</siri:ResponseTimestamp>
siri:Statustrue</siri:Status>
ojp:CalcTime62</ojp:CalcTime>
ojp:Location
ojp:Location
ojp:StopPlace
ojp:StopPlaceRefit:22025:95536</ojp:StopPlaceRef>
ojp:StopPlaceName
ojp:TextVarda</ojp:Text>
</ojp:StopPlaceName>
ojp:TopographicPlaceRef22025030:2</ojp:TopographicPlaceRef>
</ojp:StopPlace>
ojp:LocationName
<ojp:Text xml:lang="it">Varda (Arabba)</ojp:Text>
</ojp:LocationName>
ojp:GeoPosition
siri:Longitude11.88518</siri:Longitude>
siri:Latitude46.50087</siri:Latitude>
</ojp:GeoPosition>
</ojp:Location>
ojp:Completetrue</ojp:Complete>
ojp:Probability0.238000005</ojp:Probability>
</ojp:Location>
ojp:Location
ojp:Location
ojp:StopPlace
ojp:StopPlaceRefit:22025:95537</ojp:StopPlaceRef>
ojp:StopPlaceName
ojp:TextArabba</ojp:Text>
</ojp:StopPlaceName>
ojp:TopographicPlaceRef22025030:2</ojp:TopographicPlaceRef>
</ojp:StopPlace>
ojp:LocationName
<ojp:Text xml:lang="it">Arabba (Arabba)</ojp:Text>
</ojp:LocationName>
ojp:GeoPosition
siri:Longitude11.87516</siri:Longitude>
siri:Latitude46.49771</siri:Latitude>
</ojp:GeoPosition>
</ojp:Location>
ojp:Completetrue</ojp:Complete>
ojp:Probability0.25</ojp:Probability>
</ojp:Location>
</ojp:OJPLocationInformationDelivery>
</siri:ServiceDelivery>
</siri:OJPResponse>
</siri:OJP>

Both problems can be observed. The answer on top has a lower probability that the expected answer below. Even the name mach 100% probability seams to be onli 25%. Why?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions