public-transport/hafas-client

VMT Profile Update

Open

#340 opened on Aug 8, 2025

View on GitHub
 (1 comment) (0 reactions) (0 assignees)JavaScript (60 forks)github user discovery
help wantedprofile:vmtquestion

Repository metrics

Stars
 (353 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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?

Contributor guide