Earlier quoted context omitted.
Probably not scientifically accurate or anything, but if you point somewhere, then "straight" is in that direction. I guess it'll loose accuracy as you get further and further in the distance of the direction, but probably for most people would be good enough for "straight in that direction" :)
An actual straight line would be tangent to the earth at that point, so I don’t think that would work well for anything over a few hundred miles.
Show HN: What country you would hit if you went straight where you're pointing
11–20 of 45 posts
Re: Show HN: What country you would hit if you went straight where you're pointing
#12Cool! One of the countries in 1800 renders as “M?ori” for me, so it looks like you have some kind of character encoding issues (or there’s some language I don’t know about where ? is a letter). Feature request: is there a way to get a blurb about one’s current country? Lots of people on this site will get “Viceroyalty of New Spain” (the pre-independence name of Mexico, which included the entire current American South…
Re: Show HN: What country you would hit if you went straight where you're pointing
#13- Ability to toggle ocean traversal off/on
- Ability to see route on a map
- AI generated summary of the trip if I took it -- what things did I see along the way? (Should reference real map data, then make up a story; matching local culture etc.)
Re: Show HN: What country you would hit if you went straight where you're pointing
#14Re: Show HN: What country you would hit if you went straight where you're pointing
#15Earlier quoted context omitted.
I went with great circles since that feels like the most “natural” straight line on a sphere — the path you’d walk if you just kept going forward without steering. You could define "straight" as a constant compass direction (I think it's called a "rhumb") -- that would look straight on a Mercator map but would actually require regular steering adjustments to maintain the bearing.
That makes sense, but I think constant latitude, in particular, is a special case that people often have in mind.
Re: Show HN: What country you would hit if you went straight where you're pointing
#16Earlier quoted context omitted.
I went with great circles since that feels like the most “natural” straight line on a sphere — the path you’d walk if you just kept going forward without steering. You could define "straight" as a constant compass direction (I think it's called a "rhumb") -- that would look straight on a Mercator map but would actually require regular steering adjustments to maintain the bearing.
That makes sense, but I think constant latitude, in particular, is a special case that people often have in mind.
Re: Show HN: What country you would hit if you went straight where you're pointing
#17I think about this sometimes, so I like the idea, but how do you define “straight” on an oblate spheroid? Great circle, constant direction (e.g. “due east”), or something else?
An oblate spheroid is an example of a Riemannian manifold: a smooth object that looks like a plane (or, in general, any ℝ^n) locally, and has a way to measure angles between vectors in that local plane.
All Riemannian manifolds have an object called the Levi-Cevita connection, which defines how vectors in the local plane (tangent space) most naturally map to vectors in other tangent spaces in the immediate neighborhood.
Standing at a point on the Earth and looking in a certain direction gives us 1) a point on the manifold, and 2) a direction in that point's tangent space.
We then take an infinitesimally small step forward, and apply the Levi-Cevita connection to get from the old tangent space to the (infinitesimally nearby) new tangent space, and repeat. This defines an ordinary differential equation. Integrating the differential equation gives us a curve through the manifold.
Within some neighborhood of the initial point, this curve is a geodesic, i.e. the shortest path between the initial point and all subsequent points on the curve. This matches our typical intuition of "straight".
(Disclaimer: I am currently learning about this topic, but am not an expert.)
edit: https://en.wikipedia.org/wiki/Geodesics_on_an_ellipsoid goes into some interesting specifics about the results of this process on ellipsoids.
Re: Show HN: What country you would hit if you went straight where you're pointing
#18It’s a 30 second novelty I’ll show to friends.
It would be great if the line continued rather than stopping g at the first country.
For example which direction is Japan? I think it might be behind Papua New Guinea.
Re: Show HN: What country you would hit if you went straight where you're pointing
#19This is cool! Immediately upon playing with it I find I want more features :-) - Ability to toggle ocean traversal off/on - Ability to see route on a map - AI generated summary of the trip if I took it -- what things did I see along the way? (Should reference real map data, then make up a story; matching local culture etc.)
Re: Show HN: What country you would hit if you went straight where you're pointing
#20This seems to be from the same universe as the excellent https://pointerpointer.com/
I cannot install the app right now, but it seems to be really educational/entertaining more than just "fun", if that's fun...