Live data from Hacker News

Show HN: A game that tests how well you know your local area

backofyourhand.com

261–262 of 262 posts

Re: Show HN: A game that tests how well you know your local area

#261
post #178

Earlier quoted context omitted.

On my map it seemed like the road consisted of a few points, rather than the points plus lines between them (or however it's described). Selecting intersections (maybe bends?) lowered the distance.

Yes this is something I need to fix. I think you're right. I think it's measuring to the nearest node on the road (in the OpenStreetMap data) and not every point on the line as we see it. It could be related to the fact that some roads are actually broken up into multiple with the same name, not sure

This is fixed now!

Re: Show HN: A game that tests how well you know your local area

#262

Hey Adam, it's pretty fun! I agree with some of the other posters that landmarks and businesses could be a good addition. I did have some trouble understanding how it's calculating distance and drawing the dashed line. It does not always draw the shortest distance from the pin to the polyline for the road. I tried a few rounds with some deliberately wrong guesses and I'm still not sure I know what it's doing. Some ex…

I really appreciate you taking the time to look into this! I don't have much more to say right now than what I said to this person: https://news.ycombinator.com/item?id=30742704 . I need to dig into it and see. What you've written will help. I might introduce unit tests (with visuals) for this so I can sure it works in a lot of different scenarios.

I've just rewritten this area of the code completely so all of this should be fine now. Thanks again!
Post reply on HN