none
"detour" info not getting from api response RRS feed

  • Question

  • I am using bing maps rest api for getting the traffic incidents data,.
    In the documentation detour information provided but in the api response detour key is not present, can you please tell me how we can get the detour information in the api response .
    Please see the response below.
    Thanks in advance.
    "data": {
    "authenticationResultCode": "ValidCredentials",
    "brandLogoUri": "http://dev.virtualearth.net/Branding/logo_powered_by.png",
    "copyright": "Copyright © 2019 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": 18,
    "resources": [
    {
    "__type": "TrafficIncident:http://schemas.microsoft.com/search/local/ws/rest/v1",
    "point": {
    "type": "Point",
    "coordinates": [
    40.6409,
    -73.99431
    ]
    },
    "description": "At 12th Ave - Construction work.",
    "end": "/Date(1571517812000)/",
    "incidentId": 2454072602897169000,
    "lastModified": "/Date(1571184328585)/",
    "roadClosed": false,
    "severity": 2,
    "source": 9,
    "start": "/Date(1571172294000)/",
    "toPoint": {
    "type": "Point",
    "coordinates": [
    40.64076,
    -73.99407
    ]
    },
    "type": 9,
    "verified": true
    },
    {
    "__type": "TrafficIncident:http://schemas.microsoft.com/search/local/ws/rest/v1",
    "point": {
    "type": "Point",
    "coordinates": [
    40.75722,
    -73.9898
    ]
    },
    "description": "At 42nd St - Incident. Turning lane blocked.",
    "end": "/Date(1571222612000)/",
    "incidentId": 1981511935792628500,
    "lastModified": "/Date(1571215932115)/",
    "roadClosed": false,
    "severity": 2,
    "source": 9,
    "start": "/Date(1571215532000)/",
    "toPoint": {
    "type": "Point",
    "coordinates": [
    40.75722,
    -73.9898
    ]
    },
    "type": 8,
    "verified": true
    }
    ]
    }
    ],
    "statusCode": 200,
    "statusDescription": "OK",
    "traceId": "96c783f5533c424ca129e578c5fd4c63|HK00000DD6|7.7.0.0|MW10001000"
    }

    • Edited by Saladi009 Wednesday, October 16, 2019 10:58 AM
    Wednesday, October 16, 2019 10:39 AM

All replies