Skip to content

Commit

Permalink
Add Traffic incidents example
Browse files Browse the repository at this point in the history
  • Loading branch information
PolBaladas committed Mar 22, 2017
1 parent 0f273e9 commit eab8e1b
Show file tree
Hide file tree
Showing 2 changed files with 241 additions and 0 deletions.
1 change: 1 addition & 0 deletions Examples/Traffic_Incidents_microsoft.json
@@ -0,0 +1 @@
{"authenticationResultCode":"ValidCredentials","brandLogoUri":"http:\/\/dev.virtualearth.net\/Branding\/logo_powered_by.png","copyright":"Copyright © 2017 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation.","resourceSets":[{"estimatedTotal":11,"resources":[{"__type":"TrafficIncident:http:\/\/schemas.microsoft.com\/search\/local\/ws\/rest\/v1","point":{"type":"Point","coordinates":[41.67345,2.397944]},"description":"En Carrer Ebre\/Carrer Sant Antoni - Obras de mantenimiento.","end":"\/Date(1490220321000)\/","incidentId":4427013001996506445,"lastModified":"\/Date(1490201665889)\/","roadClosed":false,"severity":2,"source":9,"start":"\/Date(1488869798000)\/","toPoint":{"type":"Point","coordinates":[41.67347,2.39758]},"type":9,"verified":true},{"__type":"TrafficIncident:http:\/\/schemas.microsoft.com\/search\/local\/ws\/rest\/v1","point":{"type":"Point","coordinates":[41.54807,2.41295]},"description":"En B-40\/Pol Ind Pla de Boet\/N-II\/Mataró\/Port - Obras.","end":"\/Date(1490221032000)\/","incidentId":2542720027081623059,"lastModified":"\/Date(1490201665889)\/","roadClosed":false,"severity":2,"source":9,"start":"\/Date(1490044108000)\/","toPoint":{"type":"Point","coordinates":[41.547621,2.413282]},"type":9,"verified":true},{"__type":"TrafficIncident:http:\/\/schemas.microsoft.com\/search\/local\/ws\/rest\/v1","point":{"type":"Point","coordinates":[41.57757,2.38318]},"description":"Entre Argentona N\/Dosrius y La Roca del Vallès\/Cardedeu\/BV-5105 - Obras.","end":"\/Date(1490222832000)\/","incidentId":1131518251471421671,"lastModified":"\/Date(1490201665889)\/","roadClosed":false,"severity":2,"source":9,"start":"\/Date(1490045320000)\/","toPoint":{"type":"Point","coordinates":[41.587914,2.349634]},"type":9,"verified":true},{"__type":"TrafficIncident:http:\/\/schemas.microsoft.com\/search\/local\/ws\/rest\/v1","point":{"type":"Point","coordinates":[41.30745,2.02733]},"description":"Entre Avinguda del Segle XXI y C-31 - Obras.","end":"\/Date(1490220321000)\/","incidentId":3368022823948077292,"lastModified":"\/Date(1490201665889)\/","roadClosed":false,"severity":2,"source":9,"start":"\/Date(1484637191000)\/","toPoint":{"type":"Point","coordinates":[41.304981,2.055803]},"type":9,"verified":true},{"__type":"TrafficIncident:http:\/\/schemas.microsoft.com\/search\/local\/ws\/rest\/v1","point":{"type":"Point","coordinates":[41.38338,2.10782]},"description":"Entre Barcelona (Av Diagonal) y St Joan Despí\/St Just Desvern\/Cornellà de Ll - Obras.","end":"\/Date(1490223777000)\/","incidentId":3579717402121103430,"lastModified":"\/Date(1490202328191)\/","roadClosed":false,"severity":2,"source":9,"start":"\/Date(1490179913000)\/","toPoint":{"type":"Point","coordinates":[41.378274,2.083483]},"type":9,"verified":true},{"__type":"TrafficIncident:http:\/\/schemas.microsoft.com\/search\/local\/ws\/rest\/v1","point":{"type":"Point","coordinates":[41.69285,2.108752]},"description":"En La Ferreria - Obras de mantenimiento.","end":"\/Date(1490220321000)\/","incidentId":2092158065781347136,"lastModified":"\/Date(1490201665889)\/","roadClosed":false,"severity":2,"source":9,"start":"\/Date(1488444829000)\/","toPoint":{"type":"Point","coordinates":[41.692701,2.106929]},"type":9,"verified":true},{"__type":"TrafficIncident:http:\/\/schemas.microsoft.com\/search\/local\/ws\/rest\/v1","point":{"type":"Point","coordinates":[41.67347,2.39758]},"description":"En Carrer França\/Carrer Granollers - Obras de mantenimiento.","end":"\/Date(1490220321000)\/","incidentId":3511572237295800753,"lastModified":"\/Date(1490201665889)\/","roadClosed":false,"severity":2,"source":9,"start":"\/Date(1488869798000)\/","toPoint":{"type":"Point","coordinates":[41.67345,2.397944]},"type":9,"verified":true},{"__type":"TrafficIncident:http:\/\/schemas.microsoft.com\/search\/local\/ws\/rest\/v1","point":{"type":"Point","coordinates":[41.692701,2.106929]},"description":"En Camí Racó - Obras de mantenimiento.","end":"\/Date(1490220321000)\/","incidentId":3909371609477823671,"lastModified":"\/Date(1490201665889)\/","roadClosed":false,"severity":2,"source":9,"start":"\/Date(1488444829000)\/","toPoint":{"type":"Point","coordinates":[41.69285,2.108752]},"type":9,"verified":true},{"__type":"TrafficIncident:http:\/\/schemas.microsoft.com\/search\/local\/ws\/rest\/v1","point":{"type":"Point","coordinates":[41.304981,2.055804]},"description":"Entre C-31 y Avinguda del Segle XXI - Obras.","end":"\/Date(1490220321000)\/","incidentId":3903415766996202763,"lastModified":"\/Date(1490201665889)\/","roadClosed":false,"severity":2,"source":9,"start":"\/Date(1484637191000)\/","toPoint":{"type":"Point","coordinates":[41.30745,2.02733]},"type":9,"verified":true},{"__type":"TrafficIncident:http:\/\/schemas.microsoft.com\/search\/local\/ws\/rest\/v1","point":{"type":"Point","coordinates":[41.54574,2.41536]},"description":"Entre N-II\/Barcelona\/Cabrera de Mar\/Vilassar de Mar y Mataró Oest - Obras.","end":"\/Date(1490221032000)\/","incidentId":3542548826318262869,"lastModified":"\/Date(1490201665889)\/","roadClosed":false,"severity":2,"source":9,"start":"\/Date(1490137549000)\/","toPoint":{"type":"Point","coordinates":[41.550461,2.425076]},"type":9,"verified":true},{"__type":"TrafficIncident:http:\/\/schemas.microsoft.com\/search\/local\/ws\/rest\/v1","point":{"type":"Point","coordinates":[41.49851,2.19258]},"description":"En Barrera de la Llagosta - Obras.","end":"\/Date(1490221393000)\/","incidentId":2441774306739265206,"lastModified":"\/Date(1490201665889)\/","roadClosed":false,"severity":2,"source":9,"start":"\/Date(1489997683000)\/","toPoint":{"type":"Point","coordinates":[41.50734,2.20197]},"type":9,"verified":true}]}],"statusCode":200,"statusDescription":"OK","traceId":"99e21a4d296d46d28be721c2fa338c4e|DB40070236|7.7.0.0|BN20010848"}
240 changes: 240 additions & 0 deletions Examples/Traffic_Incidents_microsoft.markdown
@@ -0,0 +1,240 @@
# Resourcesets #
* ## Resources ##
* ### Topoint ###
* type: Point
* #### Coordinates ####
* 0: 41.67347
* 1: 2.39758
* end: /Date(1490220321000)/
* description: En Carrer Ebre/Carrer Sant Antoni - Obras de mantenimiento.
* ### Point ###
* type: Point
* #### Coordinates ####
* 0: 41.67345
* 1: 2.397944
* lastModified: /Date(1490201665889)/
* verified: True
* source: 9
* __type: TrafficIncident:http://schemas.microsoft.com/search/local/ws/rest/v1
* roadClosed: False
* incidentId: 4427013001996506445
* type: 9
* start: /Date(1488869798000)/
* severity: 2
* ### Topoint ###
* type: Point
* #### Coordinates ####
* 0: 41.547621
* 1: 2.413282
* end: /Date(1490221032000)/
* description: En B-40/Pol Ind Pla de Boet/N-II/Matar/Port - Obras.
* ### Point ###
* type: Point
* #### Coordinates ####
* 0: 41.54807
* 1: 2.41295
* lastModified: /Date(1490201665889)/
* verified: True
* source: 9
* __type: TrafficIncident:http://schemas.microsoft.com/search/local/ws/rest/v1
* roadClosed: False
* incidentId: 2542720027081623059
* type: 9
* start: /Date(1490044108000)/
* severity: 2
* ### Topoint ###
* type: Point
* #### Coordinates ####
* 0: 41.587914
* 1: 2.349634
* end: /Date(1490222832000)/
* description: Entre Argentona N/Dosrius y La Roca del Valls/Cardedeu/BV-5105 - Obras.
* ### Point ###
* type: Point
* #### Coordinates ####
* 0: 41.57757
* 1: 2.38318
* lastModified: /Date(1490201665889)/
* verified: True
* source: 9
* __type: TrafficIncident:http://schemas.microsoft.com/search/local/ws/rest/v1
* roadClosed: False
* incidentId: 1131518251471421671
* type: 9
* start: /Date(1490045320000)/
* severity: 2
* ### Topoint ###
* type: Point
* #### Coordinates ####
* 0: 41.304981
* 1: 2.055803
* end: /Date(1490220321000)/
* description: Entre Avinguda del Segle XXI y C-31 - Obras.
* ### Point ###
* type: Point
* #### Coordinates ####
* 0: 41.30745
* 1: 2.02733
* lastModified: /Date(1490201665889)/
* verified: True
* source: 9
* __type: TrafficIncident:http://schemas.microsoft.com/search/local/ws/rest/v1
* roadClosed: False
* incidentId: 3368022823948077292
* type: 9
* start: /Date(1484637191000)/
* severity: 2
* ### Topoint ###
* type: Point
* #### Coordinates ####
* 0: 41.378274
* 1: 2.083483
* end: /Date(1490223777000)/
* description: Entre Barcelona (Av Diagonal) y St Joan Desp/St Just Desvern/Cornell de Ll - Obras.
* ### Point ###
* type: Point
* #### Coordinates ####
* 0: 41.38338
* 1: 2.10782
* lastModified: /Date(1490202328191)/
* verified: True
* source: 9
* __type: TrafficIncident:http://schemas.microsoft.com/search/local/ws/rest/v1
* roadClosed: False
* incidentId: 3579717402121103430
* type: 9
* start: /Date(1490179913000)/
* severity: 2
* ### Topoint ###
* type: Point
* #### Coordinates ####
* 0: 41.692701
* 1: 2.106929
* end: /Date(1490220321000)/
* description: En La Ferreria - Obras de mantenimiento.
* ### Point ###
* type: Point
* #### Coordinates ####
* 0: 41.69285
* 1: 2.108752
* lastModified: /Date(1490201665889)/
* verified: True
* source: 9
* __type: TrafficIncident:http://schemas.microsoft.com/search/local/ws/rest/v1
* roadClosed: False
* incidentId: 2092158065781347136
* type: 9
* start: /Date(1488444829000)/
* severity: 2
* ### Topoint ###
* type: Point
* #### Coordinates ####
* 0: 41.67345
* 1: 2.397944
* end: /Date(1490220321000)/
* description: En Carrer Frana/Carrer Granollers - Obras de mantenimiento.
* ### Point ###
* type: Point
* #### Coordinates ####
* 0: 41.67347
* 1: 2.39758
* lastModified: /Date(1490201665889)/
* verified: True
* source: 9
* __type: TrafficIncident:http://schemas.microsoft.com/search/local/ws/rest/v1
* roadClosed: False
* incidentId: 3511572237295800753
* type: 9
* start: /Date(1488869798000)/
* severity: 2
* ### Topoint ###
* type: Point
* #### Coordinates ####
* 0: 41.69285
* 1: 2.108752
* end: /Date(1490220321000)/
* description: En Cam Rac - Obras de mantenimiento.
* ### Point ###
* type: Point
* #### Coordinates ####
* 0: 41.692701
* 1: 2.106929
* lastModified: /Date(1490201665889)/
* verified: True
* source: 9
* __type: TrafficIncident:http://schemas.microsoft.com/search/local/ws/rest/v1
* roadClosed: False
* incidentId: 3909371609477823671
* type: 9
* start: /Date(1488444829000)/
* severity: 2
* ### Topoint ###
* type: Point
* #### Coordinates ####
* 0: 41.30745
* 1: 2.02733
* end: /Date(1490220321000)/
* description: Entre C-31 y Avinguda del Segle XXI - Obras.
* ### Point ###
* type: Point
* #### Coordinates ####
* 0: 41.304981
* 1: 2.055804
* lastModified: /Date(1490201665889)/
* verified: True
* source: 9
* __type: TrafficIncident:http://schemas.microsoft.com/search/local/ws/rest/v1
* roadClosed: False
* incidentId: 3903415766996202763
* type: 9
* start: /Date(1484637191000)/
* severity: 2
* ### Topoint ###
* type: Point
* #### Coordinates ####
* 0: 41.550461
* 1: 2.425076
* end: /Date(1490221032000)/
* description: Entre N-II/Barcelona/Cabrera de Mar/Vilassar de Mar y Matar Oest - Obras.
* ### Point ###
* type: Point
* #### Coordinates ####
* 0: 41.54574
* 1: 2.41536
* lastModified: /Date(1490201665889)/
* verified: True
* source: 9
* __type: TrafficIncident:http://schemas.microsoft.com/search/local/ws/rest/v1
* roadClosed: False
* incidentId: 3542548826318262869
* type: 9
* start: /Date(1490137549000)/
* severity: 2
* ### Topoint ###
* type: Point
* #### Coordinates ####
* 0: 41.50734
* 1: 2.20197
* end: /Date(1490221393000)/
* description: En Barrera de la Llagosta - Obras.
* ### Point ###
* type: Point
* #### Coordinates ####
* 0: 41.49851
* 1: 2.19258
* lastModified: /Date(1490201665889)/
* verified: True
* source: 9
* __type: TrafficIncident:http://schemas.microsoft.com/search/local/ws/rest/v1
* roadClosed: False
* incidentId: 2441774306739265206
* type: 9
* start: /Date(1489997683000)/
* severity: 2
* estimatedTotal: 11
* copyright: Copyright 2017 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation.
* brandLogoUri: http://dev.virtualearth.net/Branding/logo_powered_by.png
* traceId: 99e21a4d296d46d28be721c2fa338c4e|DB40070236|7.7.0.0|BN20010848
* authenticationResultCode: ValidCredentials
* statusDescription: OK
* statusCode: 200

0 comments on commit eab8e1b

Please sign in to comment.