You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ran npm run build after changes and served the index.html via http-server ..
In a first quick try I managed to persist locations by declaring const geojson ... globally and using geojson.features.push(...features) instead of geojson.features = features.
Example Edinburgh (Scotland) and Gmunden - no overlap
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! 馃憤
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
The text was updated successfully, but these errors were encountered: