Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/espadrine/travelbot

Bot to search for journeys
https://github.com/espadrine/travelbot

Last synced: 10 days ago
JSON representation

Bot to search for journeys

Awesome Lists containing this project

README

        

```js
const travelbot = require('travelbot')
travelbot({text: 'Get me from Paris to Berlin.'}, function(res) {
console.log(res.text)
})
```

Relies on [queread][] for natural language processing and [travel-scrapper][]
for data.

[queread]: https://github.com/espadrine/queread
[travel-scrapper]: https://github.com/espadrine/travel-scrapper

# Interface
```
Hello!
Hello, human.
Who are you?
I give travel information across Europe.
My understanding relies on a word graph with edges weighted by the meaning
provided during training.
My author is Thaddée Tyl.
How do I go from Manchester to Milano on Saturday?
Let me see what I can find…
1. 272.90 €
08:30 Manchester
10:05 London
12:21 Paris
16:44 Milano
You suck.
I will improve.
(Impossible query.)
Sorry, I do not understand what you said. Ask me: “What can you understand?”
Partial query to get a train somewhere.
Well, where will you come from, and where will you go, Cotton-Eye Joe?
```