Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/design-patterns/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Here api 这里是路由API-如何使用PublicTransportSchedule模式,使用calculate route resource计算多个航路点?_Here Api - Fatal编程技术网

Here api 这里是路由API-如何使用PublicTransportSchedule模式,使用calculate route resource计算多个航路点?

Here api 这里是路由API-如何使用PublicTransportSchedule模式,使用calculate route resource计算多个航路点?,here-api,Here Api,我正在使用calculateroute资源计算多个航路点之间的路线 我曾使用出发参数设置路线的初始日期,但现在,在某些情况下,我需要使用到达时间而不是出发。我使用的是汽车模式,但由于到达参数需要公共交通时刻表,我将其设置为这种方式 然后返回此错误消息:“只有两个中途停留航路点支持时间表中转路由”,然后我将航路点0和航路点5设置为中途停留,其余设置为通过,但我收到相同的错误 获取请求 返回 { "_type": "ns2:RoutingServiceErrorType", "

我正在使用calculateroute资源计算多个航路点之间的路线

我曾使用出发参数设置路线的初始日期,但现在,在某些情况下,我需要使用到达时间而不是出发。我使用的是汽车模式,但由于到达参数需要公共交通时刻表,我将其设置为这种方式

然后返回此错误消息:“只有两个中途停留航路点支持时间表中转路由”,然后我将航路点0和航路点5设置为中途停留,其余设置为通过,但我收到相同的错误

获取请求

返回

{
    "_type": "ns2:RoutingServiceErrorType",
    "type": "ApplicationError",
    "subtype": "InvalidInputData",
    "details": "Time Table Transit Routing is only supported for two StopOver waypoints",
    "additionalData": [
        {
            "key": "waypoint",
            "value": ""
        }
    ],
    "metaInfo": {
        "timestamp": "2019-09-10T13:40:27Z",
        "mapVersion": "8.30.99.156",
        "moduleVersion": "7.2.201935-5091",
        "interfaceVersion": "2.6.68",
        "availableMapVersion": [
            "8.30.99.156"
        ]
    }
}

如文档中所述,只有当
模式
设置为
公共运输时间表
时,才能使用
到达
参数。这种类型的路由目前只支持两个中途停留航路点(
waypoint0
waypoint1
),并且不支持通过航路点