public-transport/hafas-client

VMT Profile Update

Open

#340 创建于 2025年8月8日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)JavaScript (60 fork)github user discovery
help wantedprofile:vmtquestion

仓库指标

Star
 (353 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Hey, i found this beautiful library and will definitely use it for live transit data.

I checked the current VMT Fahrplanauskunft Page and they use another mgate.exe hafas endpoint than configured in the current "VMT" profile.

const { profile: baseVmtProfile } = require('hafas-client/p/vmt/index.js');

// Create a custom profile based on the existing VMT profile
const profile = {
  ...baseVmtProfile,
  endpoint: 'https://vmt.eks-prod-euc1.hafas.cloud/bin/mgate.exe',
  auth: {
    type: 'AID',
    aid: 'web-vmt-qdr6c6y8s4cvfmfw',
  },
  client: {
    id: 'VMT',
    type: 'WEB',
    name: 'webapp',
    l: 'vs_vmt',
    v: 10010
  },
  ver: '1.78'
};

module.exports = { profile };

i updated it in my local project.

My qeustions:

  • is this the correct usage of creating custom profile?
  • should i create a fork and update the VMT profile? => and then pull request it?

贡献者指南