Open mandrasch opened 3 years ago
I've prototyped a script to do this in the shell Ruby.
+1 for an official, 2nd search bar (and then only displaying the intersect). That would be so useful for planning trips together :-)
I've improved the prototype ☝️ with better explanations & output formatting. Maybe it should be a Ruby gem?
I also found that functionality useful. Since I wanted to have it right away and since I'm not very JavaScript-literate, I put together a plain Java script (heh): https://github.com/romanboehm/destinations
This can handle an arbitrary number of locations and offers limited parametrization, e.g. max duration.
Hey,
amazing online tool, thanks for providing it! :+1:
I just had a quick idea for displaying / comparing the results of two (or more) locations to get the fastest half-way meeting spot for friends in different cities. Guess the idea is obvious, but I wanted to open it up here anyway (for anyone interested).
Took a first look in the source code. Got it running using my own mapbox.com-API key. Just wondered how do you develop locally? Found no
npm run start
, I rannpm run build
after changes and served the index.html viahttp-server .
.In a first quick try I managed to persist locations by declaring
const geojson ...
globally and usinggeojson.features.push(...features)
instead ofgeojson.features = features
.Example Edinburgh (Scotland) and Gmunden - no overlap
But of course the fetch request must be extended to compare the results as far as I understand it (https://github.com/juliuste/direkt.bahn.guru/blob/main/src/index.js#L173).
If I find time to dive into this, I'll update this issue of course.
If this is not within your scope, sorry for the interruption. :)
Best regards, Matthias