
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
hafas-find-trip
Advanced tools
Provide location and bearing, get the public transport vehicle you're most likely in.
Location and bearing are expected to be inaccurate because they come from a mobile device. Also, The vehicle movements from the underlying radar() API are often not the actual position, but the estimated position, based on their current delays and their track. To compensate for this, hafas-find-trip
npm install hafas-find-trip
If possible, provide location, bearing and product. An example from Berlin:
const query = {
// U6 tunnel, northbound
latitude: 52.496633,
longitude: 13.390944,
bearing: 16, // degrees, 0 is north
product: 'subway'
}
If you don't provide the product, hafas-find-trip will instead apply its heuristic to all vehicles nearby. If you don't provide a bearing, it will estimate purely on the distance to the track of each vehicle.
const findTrip = require('hafas-find-trip')
const hafas = require('vbb-hafas')
findTrip(hafas, query)
.then((vehicle) => {
console.log(vehicle.line.name, vehicle.direction, location)
})
.catch((err) => {
console.error(err)
process.exitCode = 1
})
If you have a question or have difficulties using hafas-find-trip, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.
FAQs
Provide location and bearing, get the vehicle you're most likely in.
We found that hafas-find-trip demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.