Missing distance from AlertCLocationV1

23 views
Skip to first unread message

Phil Son

unread,
Sep 7, 2022, 2:02:18 PM9/7/22
to road.digitraffic.fi
Hello,

I executed following request: https://tie.digitraffic.fi/api/traffic-message/v1/messages on 7.9.2022 20:54.

According to swagger the response should contain following tree:
  • TrafficAnnouncementFeatureCollectionV1
    • TrafficAnnouncementFeatureV1
      • TrafficAnnouncementPropertiesV1
        • TrafficAnnouncementV1
          • LocationDetailsV1
            • RoadAddressLocationV1
              • RoadPointV1
                • AlertCLocationV1
According to swagger, AlertCLocationV1 must contain "distance" field, but the response I got did not contain this field.

It this a bug or did I do something wrong?

Full response as attachment.

Best regards,

Phil

Phil Son

unread,
Sep 7, 2022, 2:05:16 PM9/7/22
to road.digitraffic.fi
Unfortunately I can not attach a file into this discussion for some reason.

This is the AlertCLocationV1 without "distance" field: {'locationCode': 18625, 'name': 'Räpälä'}

Digitraffic support / Solita / Jouni

unread,
Sep 8, 2022, 3:56:17 AM9/8/22
to road.digitraffic.fi
Hi,


We have reported this to source system and they are investigating this issue. Seems like this is not the only one like this. We don't know yet if the required flag is wrong or if the data is wrong.

Ystävällisin terveisin / Best regards
– Digitraffic asiakastuki / Digitraffic support –


Digitraffic support / Solita / Jouni

unread,
Sep 12, 2022, 7:08:20 AM9/12/22
to road.digitraffic.fi
Hi,

Unfortunately it seems like a bug in source schema and we will remove the requirement for distance-field for AlertCLocationV1 coming update.

Ystävällisin terveisin / Best regards
– Digitraffic asiakastuki / Digitraffic support –


Reply all
Reply to author
Forward
0 new messages