Здесь матричная маршрутизация не удалась, если мы объединили 2 конкретные путевые точки - PullRequest
0 голосов
/ 30 апреля 2020

Мы делаем запрос к матрице (версия 7.2), но у нас происходит сбой, когда мы объединяем некоторые путевые точки с другими. Этот запрос возвращает время ответа для обеих путевых точек.

Запрос:

https://matrix.route.api.here.com/routing/7.2/calculatematrix.json?app_id=[APP_ID]&app_code=[APP_CODE]&start0=53.749313,-107.732895&destination0=49.52757,-115.75541&destination1=50.47252,-104.57122&mode=shortest;car;traffic:enabled;&summaryAttributes=tt,di

Ответ:

{
    "response": {
        "metaInfo": {
            "timestamp": "2020-04-30T13:36:03Z",
            "mapVersion": "8.30.108.151",
            "moduleVersion": "7.2.202017-6962",
            "interfaceVersion": "2.6.76",
            "availableMapVersion": ["8.30.108.151"]
        },
        "matrixEntry": [{
            "startIndex": 0,
            "destinationIndex": 0,
            "summary": {
                "distance": 1070433,
                "travelTime": 48713,
                "costFactor": 326105
            }
        }, {
            "startIndex": 0,
            "destinationIndex": 1,
            "summary": {
                "distance": 487523,
                "travelTime": 19223,
                "costFactor": 147460
            }
        }]
    }
}

Если мы изменим вторую путевую точку, маршрут для первой путевая точка возвращает сбой вместо времени и расстояния.

Запрос:

https://matrix.route.api.here.com/routing/7.2/calculatematrix.json?app_id=[APP_ID]&app_code=[APP_CODE]&start0=53.749313,-107.732895&destination0=49.52757,-115.75541&destination1=51.23123,-102.47058&mode=shortest;car;traffic:enabled;&summaryAttributes=tt,di

Ответ:

{
    "response": {
        "metaInfo": {
            "timestamp": "2020-04-30T13:52:00Z",
            "mapVersion": "8.30.108.151",
            "moduleVersion": "7.2.202017-6962",
            "interfaceVersion": "2.6.76",
            "availableMapVersion": ["8.30.108.151"]
        },
        "matrixEntry": [{
            "startIndex": 0,
            "destinationIndex": 0,
            "status": "failed"
        }, {
            "startIndex": 0,
            "destinationIndex": 1,
            "summary": {
                "distance": 541091,
                "travelTime": 26209,
                "costFactor": 165129
            }
        }]
    }
}

Кто-нибудь знает, почему? Спасибо!

1 Ответ

0 голосов
/ 04 мая 2020

Пожалуйста, попробуйте перейти на следующие режимы, они дают правильный ответ для профилей автомобилей. Однако для самого короткого автомобиля, который должен работать, возвращается неудача, мы проверим это с нашей внутренней командой инженеров.

https://matrix.route.api.here.com/routing/7.2/calculatematrix.json?app_id=xxx&app_code=xxx&start0=geo! 53.749313, -107.732895 & destination0 = geo! 49.52757, -115.75541 & destination1 = geo! 51.23123, -102.47058 & mode = быстрая; машина; трафик c: включено

Traffi c -включено:

mode = Самый быстрый; автомобиль; трафик c: включен

Трафи c не включен:

режим = самый быстрый; автомобиль; трафик c: отключен

...