Hacker News new | past | comments | ask | show | jobs | submit login
Maps that show time instead of space (spacetime-maps.vercel.app)
148 points by vvolhejn 10 months ago | hide | past | favorite | 44 comments



Interesting twist on what other people have done, namely show a heat-map of where you can go using public transit + walking within 5 min, 15 min, 30 min.

time2reach https://map.henryn.ca/San%20Francisco

NYC Subwaysheds https://news.ycombinator.com/item?id=36240264



Yes! This is a less practical but more funky version of isochrone maps.


This is neat but the map by public transport time is probably non-euclidean because subways are like wormholes.


Right, the travel-time metric is not compatible with a Euclidean R² metric. You can imagine three subway stations in a triangle loop, such that it's a shorter trip to do a full loop on the subway then to walk to a point in the interior.

There's no way to continuously deform a map so that it represents travel times as distance in a plane.


Oh yes, unfortunately, you can't do this perfectly. There are some graphs that cannot be embedded in Euclidean space in any number of dimensions, e.g. a 4-cycle with distance measured by path length. It's a good-enough approximation for visualization purposes, though.


Not really - you have to wait for the subway, it also takes a finite time to travel, and it frequently stops. It can avoid traffic, but the actual MPH can be slower than a car when you include both those things.


Isn’t the point that you have a way to get to a point far away faster than you can get to a point in between? The worm hole thing ist because you can only exit at discrete points so it pulls a single point far away, and it’s sorrounding, closer to the starting point. That’s probably hard to map to a 2D map because there would be some overlap between the different „islands“ starting from subway stations


If you could take the shortest path to each point, it would solve the problem and be interesting. Not necessarily easy to do though.


We did this globally in 2018.

https://www.nature.com/articles/nature25181


Cool! I'd love to have a look at that, but the two links in the paper seem to be broken :( http://roadlessforest.eu/map.htm and http://www.map.ox.ac.uk/accessibility_to_cities/


There is a preprint linked on the sister comment


This seems to be the article behind the paywall: https://ora.ox.ac.uk/objects/uuid:5c2ebe20-a1c2-44cb-bd71-95...


This sounds conceptually difficult: Wouldn't the presence of one-way streets or airport security checkpoints, for example, mean that the travel time from A to B might not be the same as the travel time from B to A?

How can a map then be drawn?


Right. There could be northbound traffic but not southbound for example. The answer is they must be symmetrizing the distances somehow. Alternatively, you could show the travel times _from a source location_ unambiguously, which might be more interesting for the average user (e.g. from home)


Yeah, this is what I was hoping for with the touch. Seems like where I touch should be the origin and distance in x/y should represent time to travel from that origin.


That still wouldn’t work in all cases. For instance if a ring of locations are all more accessible than a location they contain. Which applies to basically all suburbs.


Indeed, you can't do this perfectly – it's an approximation. I just use one of the two directions as the travel time because if I wanted to symmetrize I'd have to call the Google Maps API twice . Asymmetry aside, it's also not possible to perfectly embed metrics in 2D Euclidean space, or any-dimensional Euclidean space for that matter (see other comment)


Before trying the site I assumed the way they would resolve this is that the distance calculations would be made relative to the point at which you held the map, but what actually happens is that the map is drawn uniformly no matter where you hold it. and of course this is an impossible representation due to the reasons you describe as well as the differences in mappings between a path that is configured to be walked in one direction, but traveled by vehicle in the other.


Good point.

And hills are rather easier in one direction too.


Does this not work on mobile?

If it does, can someone explain how to use it? No matter what I do, the map just warps a bit, and nothing else happens.


IMO, I expected that I could click various places and the map would react to the specific point I clicked.

Instead, it seems to essentially just be an animation between two pre-determined images.


After some experimentation- opening the hamburger menu and turning on "focus on hover" behaves this way.

And then panning kind of works? I feel like there's either a bug or it isn't meant for mobile


This is what it is supposed to do. The coordinates in map from one location to another change from distance to how much time it would take to reach there.


You cannot pan on iOS.


I don't think it is supposed to pan. It doesn't for me on desktop.


Sorry, that must be a bug. On desktop the map is large enough to be visible in its entirety but it is supposed to pan on mobile... I'll try to fix that


It would be a nice effect if the pressed point on the map stayed at the same location on the screen (the pressed point) during and at the end of animation.


Always knew this subconsciously but now I can put it into words.

Traffic can warp spacetime.


See also isochron map [1].

[1] https://en.wikipedia.org/wiki/Isochrone_map


These actually point of a failure mode of the original topic's visualization, at least as it pertains to public transit: https://upload.wikimedia.org/wikipedia/commons/thumb/4/40/Ma...

(I think a previous commenter called this out by referring to subways as "wormholes")

As for car directions, you should be able to create an isochron by drawing circles in the transformed map!


Yes! The fact that isochrones become circles is one of my favorite things about this. I also discuss this in the video (https://youtu.be/rC2VQ-oyDG0?t=134) I made about these.


I prefer the typical isochron presentation over the warping. It's unfortunately hard to find free, public isochron maps, though. Some examples I've found:

https://www.targomo.com/developers/apis/isochrone/

https://direkt.bahn.guru/?origin=8503000

https://www.chronotrains.com/en


There is also https://www.mapnificent.net/ For public transport


There have been so many interesting map sites posted to Hacker News lately and my favorite thing about them is how they're all (seemingly) hosted on a Linode Nanode...


If there was a place that was impossible to go to for some reason, would it become a sort of “black hole”?

Are there any such black holes on earth? Or are they only theoretical.


It would not be representable, since even 1 unreachable point would have to have infinite area.

If you allowed the 2D map to become 3d, I suppose you could have an infinitely high spike or low trough.


So it would be like a 2D black hole, you could approach it from any side, and you could move along the edges a bit, but if you go too far into it, you’ll just find yourself moving along an infinite area toward a point you’ll never cross, forever.


What if I want to know how long it's going to take in parsecs?


What if you want to know how long it's going to take in kilometers?


I had this though many years ago, but unlike distance, travel time isn't necessarily symmetric, and so it isn't possible to represent time just by warping a conventional map as A->B and B->A will get the same warp.

And if the map allows for different travel modes, like train vs driving, I think it breaks entirely.

But this isn't to poop on the website -- I'm glad someone has taken the time to build a demo, even it it can't handle some cases.


You can turn on arrows that update as you move your mouse around (assumedly, signifying an origin). Not sure exactly what they do, but they do hint at potentially taking asymmetric distance into account.


Why is Venice Beach landlocked in both versions of the LA map?


This is cool! Wish it was available for more cities, though.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: