Gent ixor - datadive-v.0.9 (1)

16
Data Dive Gent API 1

Transcript of Gent ixor - datadive-v.0.9 (1)

Page 1: Gent  ixor - datadive-v.0.9 (1)

Data Dive Gent

API

1

Page 2: Gent  ixor - datadive-v.0.9 (1)

Recap

2

{"parkings":

[{ “timestamp”: 1355788800,

"name":"P08",

"description":"Ramen",

"address":"Ramen 23,<br>9000 Gent",

"contactInfo":"Tel.: 09 266 29 70",

"openingHours":"24/24 open",

"open":true,

"totalCapacity":270,

"availableCapacity”:”VOL”,

"suggestedRGB”:”#FF0000”,

"latitude":51.05553,

"longitude":3.71603,

"covered":true,

"activeRoute”: [

{"longitude":51.05700,"latitude":3.73828},{"longitude":51.05672,"latitude":3.73341},{"longitude":51.05670,"latitude":3.73260}

]

}]

}

▸ apps: Windows phone, Android, …

▸ website(s)

Page 3: Gent  ixor - datadive-v.0.9 (1)

Evolutie

3

Page 4: Gent  ixor - datadive-v.0.9 (1)

Evolutie

4

▸ displays: VVX + 888 + richting + tekst

▸ informeren van weggebruiker:– extra mogelijkheden: calamiteiten, …

– meer informatie

– dynamische informatie

▸ signaal/ruis ratio verhogen:– gerichte informatie

Page 5: Gent  ixor - datadive-v.0.9 (1)

5

HERMES VGS

API

Architectuur

HERMES PROXY

API

Page 6: Gent  ixor - datadive-v.0.9 (1)

Informatie

6

▸ parkeerinformatie

▸ dynamische routes

▸ vrije tekstberichten

▸ events:– verkeerskundige gebeurtenis: ongeval, file,

wegversperring,…

– locatie: punt, weg(segment), zone

Page 7: Gent  ixor - datadive-v.0.9 (1)

internal

known/trusted

7

HERMES VGS

HERMES PROXY

Architectuur

API+

TOERIT

unknown/untrusted

API

(TCC)

API+API

Page 8: Gent  ixor - datadive-v.0.9 (1)

API’s

8

trusted API: web-interface

▸ DATEX2

untrusted API: mobile interface(light-weight, gericht)

▸ /parkings

▸ /events

▸ /messages

Page 9: Gent  ixor - datadive-v.0.9 (1)

Functionaliteit

9

▸ uitwisseling van verkeersinformatie

▸ via webservices (SOAP/WSDL)

▸ # publications: (future) roadworks, unplanned events (accidents, road closures,..)

▸ subscription

▸ DATEX II

Page 10: Gent  ixor - datadive-v.0.9 (1)

DATEX2 XML

10

<ns2:situation id="EVT1126328" version="1"><ns2:situationVersionTime>2014-02-26T11:00:11.232+01:00</ns2:situationVersionTime><ns2:headerInformation>

<ns2:confidentiality>noRestriction</ns2:confidentiality><ns2:informationStatus>real</ns2:informationStatus>

</ns2:headerInformation><ns2:situationRecord xsi:type="ns2:Accident" id="1126328-M-ACI" version="1">

<ns2:situationRecordCreationTime>2014-02-26T11:00:10.484+01:00</ns2:situationRecordCreationTime><ns2:situationRecordVersionTime>2014-02-26T11:00:11.232+01:00</ns2:situationRecordVersionTime><ns2:probabilityOfOccurrence>certain</ns2:probabilityOfOccurrence><ns2:validity>

<ns2:validityStatus>active</ns2:validityStatus><ns2:validityTimeSpecification>

<ns2:overallStartTime>2014-02-26T11:00:10.484+01:00</ns2:overallStartTime></ns2:validityTimeSpecification>

</ns2:validity><ns2:groupOfLocations xsi:type="ns2:Point">

<ns2:alertCPoint xsi:type="ns2:AlertCMethod4Point"><ns2:alertCLocationCountryCode>BE</ns2:alertCLocationCountryCode><ns2:alertCLocationTableNumber>601</ns2:alertCLocationTableNumber><ns2:alertCLocationTableVersion>2.1</ns2:alertCLocationTableVersion><ns2:alertCDirection>

<ns2:alertCDirectionCoded>negative</ns2:alertCDirectionCoded></ns2:alertCDirection><ns2:alertCMethod4PrimaryPointLocation>

<ns2:alertCLocation><ns2:specificLocation>5806</ns2:specificLocation>

</ns2:alertCLocation><ns2:offsetDistance>

<ns2:offsetDistance>885</ns2:offsetDistance></ns2:offsetDistance>

</ns2:alertCMethod4PrimaryPointLocation></ns2:alertCPoint>

</ns2:groupOfLocations><ns2:accidentType>accident</ns2:accidentType>

</ns2:situationRecord>

type: Accident

location (Alert-C):

CountryCode: BE

TableNumber: 601

TableVersion: 2.1

Page 11: Gent  ixor - datadive-v.0.9 (1)

DATEX2 XML

11

<ns2:situation id="EVT1112881" version="2">

<ns2:situationVersionTime>2014-02-15T00:04:50.813+01:00</ns2:situationVersionTime>

<ns2:headerInformation>

<ns2:confidentiality>noRestriction</ns2:confidentiality>

<ns2:informationStatus>real</ns2:informationStatus>

</ns2:headerInformation>

<ns2:situationRecord xsi:type="ns2:RoadOrCarriagewayOrLaneManagement" id="1112881-A-RCD" version="2">

<ns2:situationRecordCreationTime>2014-02-14T00:04:51.835+01:00</ns2:situationRecordCreationTime>

<ns2:situationRecordVersionTime>2014-02-15T00:04:50.813+01:00</ns2:situationRecordVersionTime>

<ns2:probabilityOfOccurrence>certain</ns2:probabilityOfOccurrence>

<ns2:validity>

<ns2:validityStatus>active</ns2:validityStatus>

<ns2:validityTimeSpecification>

<ns2:overallStartTime>2014-02-14T00:04:51.835+01:00</ns2:overallStartTime>

</ns2:validityTimeSpecification>

</ns2:validity>

<ns2:groupOfLocations xsi:type="ns2:Linear">

<ns2:alertCLinear xsi:type="ns2:AlertCMethod4Linear">

<ns2:alertCLocationCountryCode>BE</ns2:alertCLocationCountryCode>

<ns2:alertCLocationTableNumber>601</ns2:alertCLocationTableNumber>

<ns2:alertCLocationTableVersion>2.1</ns2:alertCLocationTableVersion>

<ns2:alertCDirection>

<ns2:alertCDirectionCoded>positive</ns2:alertCDirectionCoded>

</ns2:alertCDirection>

<ns2:alertCMethod4PrimaryPointLocation>

<ns2:alertCLocation>

<ns2:specificLocation>11402</ns2:specificLocation>

</ns2:alertCLocation>

<ns2:offsetDistance>

<ns2:offsetDistance>821</ns2:offsetDistance>

</ns2:offsetDistance>

</ns2:alertCMethod4PrimaryPointLocation>

<ns2:alertCMethod4SecondaryPointLocation>

<ns2:alertCLocation>

<ns2:specificLocation>11404</ns2:specificLocation>

</ns2:alertCLocation>

<ns2:offsetDistance>

<ns2:offsetDistance>11670</ns2:offsetDistance>

</ns2:offsetDistance>

</ns2:alertCMethod4SecondaryPointLocation>

</ns2:alertCLinear>

</ns2:groupOfLocations>

<ns2:complianceOption>advisory</ns2:complianceOption>

<ns2:roadOrCarriagewayOrLaneManagementType>roadClosed</ns2:roadOrCarriagewayOrLaneManagementType>

</ns2:situationRecord>

type: RoadOrCarriagewayOrLaneManagement

type: roadClosed

location (Alert-C):

CountryCode: BE

TableNumber: 601

TableVersion: 2.1

Page 12: Gent  ixor - datadive-v.0.9 (1)

REST & JSON: routes

12

request:

http://<proxyServerUrl>/parkings/Gent

response:{"parkings":

[{ “timestamp”: 1355788800,

"name":"P08",

"open":true,

"totalCapacity":270,

"availableCapacity”:”VOL”,

"latitude":51.05553,

"longitude":3.71603,

"covered":true,

"activeRoute”: [

{"longitude":51.05700,"latitude":3.73828},{"longitude":51.05672,"latitude":3.73341}, {"longitude":51.05670,"latitude":3.73260}

]

}]

}

Page 13: Gent  ixor - datadive-v.0.9 (1)

REST & JSON: events

13

request:

http://<proxyServerUrl>/events[?start=&end=&limit=]

- start = start datum/tijd in ISO8601- end = einde datum/tijd in ISO8601- limit = maximum aantal events

functionaliteit:

- type event

- van/tot

- locatie

- regio

- max aantal

response:{"events":

[{

"id": "8801232",

"createdOn": "Thu, 17 Apr 2014 08:17:00 GMT",

"status": "actual",

"traffic_type": "Accident",

"msg_type": "overturnedVehicle",

"urgency": "urgent",

"severity": "high",

"startTime": "Thu, 17 Apr 2014 08:17:00 GMT",

"areas": [

{

"wkt": "POINT(3.706031 51.049376)",

}]

}]}

Page 14: Gent  ixor - datadive-v.0.9 (1)

REST & JSON: events

14

request:

http://<proxyServerUrl>/events[?near={lat,lon,radius}]

- lat, lon = gps-coordinaten van puntlocatie- radius = radius in meter

response:{"events":

[{

"id": "8801232",

"createdOn": "Thu, 17 Apr 2014 08:17:00 GMT",

"status": "actual",

"traffic_type": "Accident",

"msg_type": "overturnedVehicle",

"urgency": "urgent",

"severity": "high",

"startTime": "Thu, 17 Apr 2014 08:17:00 GMT",

"areas": [

{

"wkt": "POINT(3.706031 51.049376)",

}]

}]}

Page 15: Gent  ixor - datadive-v.0.9 (1)

REST & JSON: events

15

request:

http://<proxyServerUrl>/events[?box={minlat,minlong,maxlat,maxlong}]

- minlat, minlong = gps-coordinaten van puntlocatie- maxlat, maxlong = gps-coordinaten van puntlocatie

response:{"events":

[{

"id": "8801232",

"createdOn": "Thu, 17 Apr 2014 08:17:00 GMT",

"status": "actual",

"traffic_type": "Accident",

"msg_type": "overturnedVehicle",

"urgency": "urgent",

"severity": "high",

"startTime": "Thu, 17 Apr 2014 08:17:00 GMT",

"areas": [

{

"wkt": "POINT(3.706031 51.049376)",

}]

}]}

Page 16: Gent  ixor - datadive-v.0.9 (1)

REST & JSON: messages

16

request:

http://<proxyServerUrl>/messages[?start=&end=&limit=]

- start = start datum/tijd in ISO8601- end = einde datum/tijd in ISO8601- limit = maximum aantal events

response:{“messages”:

[{ "id": "6703452",

"createdOn": "Thu, 03 Apr 2014 08:17:00 GMT",

"status": "actual",

"traffic_type": "Abnormal Traffic",

"msg_type": "slowTraffic",

"urgency": "normalUrgency",

"severity": ”minor",

"headline": "Werken op R40",

"description": "Door werken op de R40 is er een vermoedelijke vertraging",

"shortDescription": "Vertraging op R40 door wegenwerken",

"startTime": "Thu, 03 Apr 2014 08:17:00 GMT",

"endTime": "Thu, 10 Apr 2014 08:56:10 GMT",

"areas": [

{

"poi": "R40, Bijloke",

"wkt": "MULTIPOINT(-0.344549 51.732535,-0.301716 51.73089)",

}]

}]}