This blog entry shows configurations we use in our InQMS system to fetch and archive distributions.
The format is:
key is so called session - “path” for storing consequtive series of collected samples
distribution
: identification of the distribution fetched (note, that some distributions do not have fetching configured for various reasons)request
: section defining the HTTP request to sendrequest.url
: URL to send the request torequest.auth
: authentication method and parametersrequest.headers
: constant request headersrequest.updated.type
: conditional HTTP request with possible values:last_modified
: using request headerIf-Modified-Since
with value fromLast-Modified
response headeretag
: using request headerIf-None-Match
with value fromETag
response headerhash
: conditional request is not supported, archiving system calculates hash of the content on it’s own and stores new version only, if the hash has changed
trigger.seconds
: number of seconds between consequitve requests
The configurations might be in future put into “NAPs Browser” section to relate closely to given distribution. This blog entry serves as provisional form of making given information accessible.
cz-ndic/d2-common-pull/2023-10-16:
distribution: publisher/cz-ndic/distribution/d2-common-pull
request:
type: http
url: https://mobilitydata.rsd.cz/Resources/Dynamic/CommonTIDatex/
auth:
type: basic
username: '**********'
password: '**********'
headers:
- name: Accept
value: '*/xml; charset=utf-8'
- name: Content-Type
value: text/xml
updated:
type: last_modified
trigger:
type: interval
seconds: 60
hr-promet/d2-events/2023-10-24:
distribution: publisher/hr-promet/distribution/d2-events
request:
type: http
url: https://b2b.promet-info.hr/dc/b2b.hak.events.datex
auth:
type: basic
username: '**********'
password: '**********'
headers:
- name: Accept
value: '*/xml; charset=utf-8'
- name: Content-Type
value: text/xml
updated:
type: last_modified
trigger:
type: interval
seconds: 60
hr-promet/d2-roadworks/2023-10-24:
distribution: publisher/hr-promet/distribution/d2-roadworks
request:
type: http
url: https://b2b.promet-info.hr/dc/b2b.hak.roadworks.datex
auth:
type: basic
username: '**********'
password: '**********'
headers:
- name: Accept
value: '*/xml; charset=utf-8'
- name: Content-Type
value: text/xml
updated:
type: last_modified
trigger:
type: interval
seconds: 60
at-asfinag.at/d2-roadworks/2024-07-17:
distribution: publisher/at-asfinag/distribution/d2-roadworks
request:
type: http
url: https://content.asfinag.at/services/resource/2d63fd4d************************
updated:
type: hash
trigger:
type: interval
seconds: 300
at-asfinag.at/d2-srti/2024-07-17:
distribution: publisher/at-asfinag/distribution/d2-srti
request:
type: http
url: https://content.asfinag.at/services/resource/124a61a*************************
updated:
type: hash
trigger:
type: interval
seconds: 300
be-verkeerscentrum.be/d2-vlaanderen/2024-07-17:
distribution: publisher/be-verkeerscentrum/distribution/d2-vlaanderen
request:
type: http
url: https://www.verkeerscentrum.be/uitwisseling/datex2v3full
updated:
type: hash
trigger:
type: interval
seconds: 300
bg-ria.bg/d2-accidents/2024-09-01:
distribution: publisher/bg-ria/distribution/d2-accidents
request:
type: http
url: https://datasheet.api.bg/files/{today_date}_danger_d01.xml
token_url:
- type: datetime
token: today_date
format: '%Y%m%d'
timezone: Europe/Sofia
updated:
type: last_modified
trigger:
type: interval
seconds: 60
bg-ria.bg/d2-danger/2024-09-01:
distribution: publisher/bg-ria/distribution/d2-danger
request:
type: http
url: https://datasheet.api.bg/files/{today_date}_danger_d02.xml
token_url:
- type: datetime
token: today_date
format: '%Y%m%d'
timezone: Europe/Sofia
updated:
type: last_modified
trigger:
type: interval
seconds: 60
dk-du.vd.dk/d2-common/2024-09-01:
distribution: publisher/dk-vejdirektoratet/distribution/d2-common
request:
type: http
url: https://distribution.dataudveksler.app.vd.dk/api/dataset/416/latest/DatexII
auth:
type: oauth20_client_credentials
token_url: https://login.microsoftonline.com/f1044067-8c60-4022-98d8-69306c5f7238/oauth2/v2.0/token
scope: d7707c40-2539-4cc9-99b4-a73eca3a81b6/.default
client_id: d7707c40-2539-4cc9-99b4-a73eca3a81b6
client_secret: '**********'
updated:
type: hash
trigger:
type: interval
seconds: 300
ee-tark-tee.ee/d2-srti/2024-07-17:
distribution: publisher/ee-tark-tee/distribution/d2-srti
request:
type: http
url: https://tarktee.ee/api/v1/datex/safetyData
auth:
type: headers
headers:
- name: X-DATEX-API-KEY
value: '**********'
updated:
type: hash
trigger:
type: interval
seconds: 300
fi-digitraffic.fi/d2-roadworks/2024-07-17:
distribution: publisher/fi-digitraffic/distribution/d2-roadworks
request:
type: http
url: https://tie.digitraffic.fi/api/traffic-message/v1/messages.datex2?inactiveHours=0&situationType=ROAD_WORK
updated:
type: etag
trigger:
type: interval
seconds: 60
fi-digitraffic.fi/d2-accidents/2024-07-17:
distribution: publisher/fi-digitraffic/distribution/d2-accidents
request:
type: http
url: https://tie.digitraffic.fi/api/traffic-message/v1/messages.datex2?inactiveHours=0&situationType=TRAFFIC_ANNOUNCEMENT
updated:
type: etag
trigger:
type: interval
seconds: 60
fr-bison-fute.gouv.fr/d2-action-c/2024-07-17:
distribution: publisher/fr-bison-fute/distribution/d2-action-c
request:
type: http
url: https://tipi.bison-fute.gouv.fr/bison-fute-restreint/publications-restreintes/grt/ACTION-C/content.xml
auth:
type: basic
username: '**********'
password: '**********'
updated:
type: last_modified
trigger:
type: interval
seconds: 60
de-mobilithek/d2-motorways/2024-08-08:
distribution: publisher/de-mobilithek/distribution/d2-motorways
request:
type: http
url: https://mobilithek.info:8443/mobilithek/api/v1.0/subscription/744990067178512384/clientPullService?subscriptionID=744990067178512384
auth:
type: cert
cert: "Bag Attributes\n friendlyName: machineaccountcertificate\n localKeyID:\
\ 54 69 6D 65 20 31 37 32 31 33 38 30 30 32 33 39 32 34\nKey Attributes: <No\
\ Attributes>\n-----BEGIN PRIVATE KEY-----\n********\n********\n-----END PRIVATE\
\ KEY-----\n"
updated:
type: last_modified
trigger:
type: interval
seconds: 60
de-mobilithek/d2-accidents/2024-08-08:
distribution: publisher/de-mobilithek/distribution/d2-accidents
request:
type: http
url: https://mobilithek.info:8443/mobilithek/api/v1.0/subscription/744990171641839616/clientPullService?subscriptionID=744990171641839616
auth:
type: cert
cert: "Bag Attributes\n friendlyName: machineaccountcertificate\n localKeyID:\
\ 54 69 6D 65 20 31 37 32 31 33 38 30 30 32 33 39 32 34\nKey Attributes: <No\
\ Attributes>\n-----BEGIN PRIVATE KEY-----\n********\n********\n-----END PRIVATE\
\ KEY-----\n"
updated:
type: last_modified
trigger:
type: interval
seconds: 60
de-mobilithek/d2-roadworks-long/2024-08-08:
distribution: publisher/de-mobilithek/distribution/d2-roadworks-long
request:
type: http
url: https://mobilithek.info:8443/mobilithek/api/v1.0/subscription/744990215421992960/clientPullService?subscriptionID=744990215421992960
auth:
type: cert
cert: "Bag Attributes\n friendlyName: machineaccountcertificate\n localKeyID:\
\ 54 69 6D 65 20 31 37 32 31 33 38 30 30 32 33 39 32 34\nKey Attributes: <No\
\ Attributes>\n-----BEGIN PRIVATE KEY-----\n********\n********\n-----END PRIVATE\
\ KEY-----\n"
updated:
type: last_modified
trigger:
type: interval
seconds: 60
de-mobilithek/d2-roadworks-short/2024-08-08:
distribution: publisher/de-mobilithek/distribution/d2-roadworks-short
request:
type: http
url: https://mobilithek.info:8443/mobilithek/api/v1.0/subscription/744990245952323584/clientPullService?subscriptionID=744990245952323584
auth:
type: cert
cert: "Bag Attributes\n friendlyName: machineaccountcertificate\n localKeyID:\
\ 54 69 6D 65 20 31 37 32 31 33 38 30 30 32 33 39 32 34\nKey Attributes: <No\
\ Attributes>\n-----BEGIN PRIVATE KEY-----\n********\n********\n-----END PRIVATE\
\ KEY-----\n"
updated:
type: last_modified
trigger:
type: interval
seconds: 60
hu-kozut.hu/d2-common/2024-07-17:
distribution: publisher/hu-kozut/distribution/d2-common
request:
type: http
url: https://napphub.kozut.hu/hub-web//datex2/2_3/f25b5058-8fa0-4933-*******************************
updated:
type: hash
trigger:
type: interval
seconds: 300
lv-lvceli.lv/d2-obstacles/2024-09-18:
distribution: publisher/lv-lvceli/distribution/d2-obstacles
request:
type: http
method: POST
data: '{}'
url: https://www.transportdata.gov.lv/api/v1/get/file/download-file
auth:
type: headers
headers:
- name: x-api-key
value: '**********'
headers:
- name: Content-Type
value: application/json
updated:
type: hash
trigger:
type: interval
seconds: 300
lu-data.public.lu/d2-events/2024-07-17:
distribution: publisher/lu-data-public/distribution/d2-events
request:
type: http
url: https://data.public.lu/fr/datasets/r/cf1d57a7-f367-4048-b4cd-1f2161874896
updated:
type: etag
trigger:
type: interval
seconds: 60
lu-data.public.lu/d2-roadworks/2024-07-17:
distribution: publisher/lu-data-public/distribution/d2-roadworks
request:
type: http
url: https://data.public.lu/fr/datasets/r/44c47fb6-e3fd-4398-9222-5d2ffbd68f1f
updated:
type: etag
trigger:
type: interval
seconds: 60
nl-ntm.ndw.nu/d2-accidents/2024-07-17:
distribution: publisher/nl-ndw/distribution/d2-accidents
request:
type: http
url: https://opendata.ndw.nu/incidents.xml.gz
updated:
type: etag
trigger:
type: interval
seconds: 60
nl-ntm.ndw.nu/d2-srti/2024-07-17:
distribution: publisher/nl-ndw/distribution/d2-srti
request:
type: http
url: https://opendata.ndw.nu/srti.xml.gz
updated:
type: etag
trigger:
type: interval
seconds: 60
no-vegvessen/d2-common/2024-10-14:
distribution: publisher/no-vegvessen/distribution/d2-common
request:
type: http
url: https://datex-server-get-v3-1.atlas.vegvesen.no/datexapi/GetSituation/pullsnapshotdata
auth:
type: basic
username: '**********'
password: '**********'
updated:
type: last_modified
trigger:
type: interval
seconds: 300
pl-gddkia/d2-common/2024-09-26:
distribution: publisher/pl-gddkia/distribution/d2-common
request:
type: http
url: https://kpd.gddkia.gov.pl/addiod/ws_v34/snapshotPull
headers:
- name: Accept
value: text/xml
- name: Content-Type
value: text/xml; charset=UTF-8
soap:
message: '<soap:Envelope xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><s:Header xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wse:BinarySecurityToken
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
u:Id="BinaryToken1" xmlns:wse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">MIIDuzCCAq**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************</wse:BinarySecurityToken><Signature
xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /><SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"
/><Reference URI="#_1"><Transforms><Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"
/></Transforms><DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"
/><DigestValue>7JGulH7GUJuKWU2eBMWeAkSiOuO5CT7oTwp16LoBTxE=</DigestValue></Reference></SignedInfo><SignatureValue>RhPj/UOMVA1Cl*******************************************************************************************************************************************************************************************************************************************************************************************************************************************</SignatureValue><KeyInfo><wse:SecurityTokenReference
xmlns:wse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wse:Reference
URI="#BinaryToken1" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509"
/></wse:SecurityTokenReference></KeyInfo></Signature></wsse:Security></s:Header><soap:Body
u:Id="_1" /></soap:Envelope>
'
action: http://datex2.eu/wsdl/snapshotPull/2020/pullData
updated:
type: hash
trigger:
type: interval
seconds: 300
si-nap.si/d2-srti/2024-07-17:
distribution: publisher/si-ncup/distribution/d2-srti
request:
type: http
url: https://b2b.ncup.si/data/b2b.srti.datexii33
auth:
type: basic
username: '**********'
password: '**********'
updated:
type: last_modified
trigger:
type: interval
seconds: 300
si-nap.si/d2-accidents/2024-07-17:
distribution: publisher/si-ncup/distribution/d2-accidents
request:
type: http
url: https://b2b.nap.si/data/b2b.events
auth:
type: basic
username: '**********'
password: '**********'
updated:
type: last_modified
trigger:
type: interval
seconds: 300
es-nap.dgt.es/d2-accidents/2024-07-17:
distribution: publisher/es-dgt/distribution/d2-accidents
request:
type: http
url: https://infocar.dgt.es/datex2/v3/dgt/SituationPublication/incidencias.xml
updated:
type: last_modified
trigger:
type: interval
seconds: 60
es-nap.dgt.es/d2-accidents-basque/2024-07-17:
distribution: publisher/es-dgt/distribution/d2-accidents-basque
request:
type: http
url: https://infocar.dgt.es/datex2/dt-gv/SituationPublication/all/content.xml
updated:
type: last_modified
trigger:
type: interval
seconds: 60
es-nap.dgt.es/d2-accidents-catalonia/2024-07-17:
distribution: publisher/es-dgt/distribution/d2-accidents-catalonia
request:
type: http
url: https://infocar.dgt.es/datex2/sct/SituationPublication/all/content.xml
updated:
type: last_modified
trigger:
type: interval
seconds: 60
se-bransch.trafikverket.se/d2-roadworks/2024-09-10:
distribution: publisher/se-trafikverket-bransch/distribution/d2-roadworks
request:
type: http
url: https://datex.trafikverket.se/D2ClientPull/SituationPullServerBA/2_3/RoadWorks
auth:
type: basic
username: '**********'
password: '**********'
updated:
type: hash
trigger:
type: interval
seconds: 300
se-bransch.trafikverket.se/d2-accidents/2024-09-10:
distribution: publisher/se-trafikverket-bransch/distribution/d2-accidents
request:
type: http
url: http://datex.trafikinfo.trafikverket.se/D2ClientPull/SituationPullServerBA/3_0/Accidents
auth:
type: basic
username: '**********'
password: '**********'
updated:
type: hash
trigger:
type: interval
seconds: 300