openTdataCH / ojp-sdk

Meta OJP SDK repo
MIT License
4 stars 0 forks source link

TR: Support GeoPosition in Via/ViaPoint #123

Open vasile opened 2 months ago

vasile commented 2 months ago

Given this request https://gist.github.com/vasile/62bcfd15070b6a2c0f7a30edf33966e4#file-ojp2_tr_via_coords-xml-L30-L40

is using TripVia of type GeoPosition

<Via>
  <ViaPoint>
    <GeoPosition>
      <siri:Longitude>7.58956</siri:Longitude>
      <siri:Latitude>47.54741</siri:Latitude>
    </GeoPosition>
    <Name>
      <Text>Basel SBB</Text>
    </Name>
  </ViaPoint>
</Via>

but no trips are returned.

Using StopPlaceRef works as expected

<Via>
  <ViaPoint>
      <StopPlaceRef>8500010</StopPlaceRef>
      <Name>
          <Text>Basel</Text>
      </Name>
  </ViaPoint>
</Via>