public-transport/hafas-client

VMT Profile Update

Open

#340 geöffnet am 8. Aug. 2025

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (60 Forks)github user discovery
help wantedprofile:vmtquestion

Repository-Metriken

Stars
 (353 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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