Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/espadrine/travelbot
- Owner: espadrine
- License: mit
- Created: 2016-10-02T17:46:06.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-06T09:52:53.000Z (about 8 years ago)
- Last Synced: 2024-04-25T21:45:53.511Z (7 months ago)
- Language: JavaScript
- Size: 19.5 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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?
```