和顺 / 明行 返回所属 Agent
MX-05.03

末段接驳

原能力

核对到达后至住宿或活动地点的路线、时段与备用交通选项。(细化版 p.10–11)

首选项目

Valhalla(MIT 代码)。 Valhalla

匹配范围

route、步行与公交候选和各段耗时。

源码

Valhalla · actor_t::route(

src/tyr/actor.cc · 97–110 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
actor_t::route(const std::string& request_str, const std::function<void()>* interrupt, Api* api) {
  auto scoped_cleaner = make_finally([this]() {
    if (auto_cleanup)
      cleanup();
  });
  // set the interrupts
  pimpl->set_interrupts(interrupt);
  // if the caller doesn't want a copy we'll use this dummy
  Api dummy;
  if (!api) {
    api = &dummy;
  }
  // parse the request
  ParseApi(request_str, Options::route, *api);

实现与验收要点

夜间实际运营、接入凭证及旅客个人约束。