News for hackers. Stuff that matters.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @08:50AM (#30733344)
Hi HN, I made Back Of Your Hand, a map-based game where you're given random street names and you have to locate them on the map. You can play solo or compete with friends on other devices.

I made it for my dad as a Christmas present. It also gave me an opportunity to learn about geocoding, etc.

Tech: serverless, Leaflet, Turf, Svelte, TypeScript, Cloudflare pages. I tried to use as many open / free tools as I could. I originally used map tiles from OpenStreetMap but they were discontinued so it uses Mapbox and Maptiler now.

Questions / feedback welcome. I also wrote a blog post with more information: https://adamlynch.com/back-of-your-hand. The code: https://github.com/adam-lynch/back-of-your-hand

Warning: it’s pretty difficult, unless your streets are numbered :)

Re:Show HN: A game that tests how well you know your local area by kuu on Saturday March 19, 2022 @06:01PM (#30737946)
First of all: it's really cool and fun! Congratulations!

As a small feedback: adjustable radius would be more fun. For example in the town were I had my childhood, this area is too big and takes other neighbourhood/cities that I don't know, but for where I live now it fits great.

Again, nice job and congratulations for making it!

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @06:05PM (#30737975)
Thank you :)

This has come up so much. I'll be adding it, thanks!

Re:Show HN: A game that tests how well you know your local area by adenadel on Saturday March 19, 2022 @07:00PM (#30738345)
Another thing is that it seems you are sampling with replacement. I placed a circle in a rural area (where I grew up) and in one round I got the same street for 3/5 of the selections (and there were 10+ streets within the radius).
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @07:30PM (#30738525)
Thanks, will look into it!
Re:Show HN: A game that tests how well you know your local area by adamlynch on Tuesday March 22, 2022 @04:54AM (#30764000)
This is now fixed! (Thanks to a contribution by johrpan)
Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @12:11PM (#30743866)
For now, I've reduced the circle radius by 20%. I plan to make it adjustable in the future.
Re:Show HN: A game that tests how well you know your local area by TimPC on Saturday March 19, 2022 @12:29PM (#30735094)
The circle is a bit large as in larger than a single neighborhood for my city. I feel like the game is useful when it asks you how well you know a single neighborhood. It’s less interesting when it asks you how well you know 2.5 neighborhoods.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @12:52PM (#30735357)
Thanks for the feedback. I'm considering adding difficulty modes or a way to change the radius. I'd rather that people wouldn't get a perfect score too easily though
Re:Show HN: A game that tests how well you know your local area by TimPC on Saturday March 19, 2022 @01:51PM (#30735912)
I think it’s more important for the game to be meaningful than difficult. How well do you know a neighborhood is deeply meaningful. How well do you know 2.5 neighborhoods isn’t. I’d strongly recommend sacrificing difficulty for meaning here.
Re:Show HN: A game that tests how well you know your local area by bfung on Saturday March 19, 2022 @09:49PM (#30739275)
It’s def a good positive reinforcement to give people a good feeling that they know their own neighborhood.

Having the next 1.5 neighborhood is also valuable: if you live so close, it’s not a stretch to go learn the neighboring neighborhood (in fact, why not!?).

There maybe a level of “insult” (you don’t really know your ‘hood outside of the 5 streets), but used positively, I think the game is great.

Re:Show HN: A game that tests how well you know your local area by mathgeek on Saturday March 19, 2022 @04:22PM (#30737255)
This is relative to the density of where you are playing. The default radius out in rural areas doesn't have enough roads, for example. A customizable radius or geofence sounds appealing.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @04:35PM (#30737368)
I agree (and what you want out of the game). I wonder is there a "number of streets" which is a better sweet spot / a better default, rather than a radius
Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @12:11PM (#30743871)
For now, I've reduced the circle radius by 20%
Re:Show HN: A game that tests how well you know your local area by BrandoElFollito on Saturday March 19, 2022 @05:23PM (#30737691)
A geofence matching the city limits would be great
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @05:46PM (#30737843)
Right now there's no backend but potentially I could have a leaderboard per geofenced city / town
Re:Show HN: A game that tests how well you know your local area by SECProto on Saturday March 19, 2022 @03:56PM (#30737042)
I enjoyed it! worked reasonably well for the city I tried. I did have a few nitpicks, but they are mostly datasource related as opposed to anything you can control - the several rounds i played included a pedway system, several walking trails, and a private driveway. Only change I might suggest making is the radius of the pin - getting a 99/100 for being 6m off because the pin didnt go exactly where I thought it was. Or is there any way for the pin to snap to an object?
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @04:09PM (#30737130)
Can you give me the coordinates you played in? I will review the "objects".

I can do something with the pin too. Probably not possible to snap though, no.

Thanks!

Re:Show HN: A game that tests how well you know your local area by SECProto on Saturday March 19, 2022 @04:45PM (#30737448)
> Can you give me the coordinates you played in? I will review the "objects".

Here's the osm for the pedway object, labelled a footpath. https://www.openstreetmap.org/relation/11909462

Here's one of the trails: https://www.openstreetmap.org/way/511807176

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @04:55PM (#30737517)
Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 27, 2022 @09:58AM (#30820286)
Fixed!
Re:Show HN: A game that tests how well you know your local area by nannal on Saturday March 19, 2022 @03:52PM (#30737011)
I want to chime in as well to say I felt the circle was too large, I know districts in cities vary in size a lot but, but the game covered ~6 with mine in the middle. Checking the village I grew up in also covered the edges of three towns around it and a neighboring village.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @12:16PM (#30743934)
Thanks. For now, I've reduced the circle radius by 20%. I plan to make it adjustable in the future.
Re:Show HN: A game that tests how well you know your local area by kiney on Saturday March 19, 2022 @06:35PM (#30738166)
I think it would be useful to use actual boundries of villages or neighbourhoods instead of circles. Not sure how difficult that is. (the required data is in OSM, at least in germany)
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @07:16PM (#30738429)
The data is there but it's difficult to make everyone happy. I don't have a backend but if I did, a leaderboard per town would be nice
Re:Show HN: A game that tests how well you know your local area by et-al on Saturday March 19, 2022 @07:54PM (#30738677)
I think a difference with Wordle is that we're playing different neighborhoods and different streets every day, so a "cheated" perfect score would have little meaning. And I think when people share their Wordle results, it's often a "wow, I lucked out on that guess" or "phew, almost didn't get it".

Perhaps the ability to choose the sample area could be based on the zoom level and hidden under a settings cog?

Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @12:14PM (#30743916)
For now, I've reduced the circle radius by 20%. I plan to make it adjustable in the future.
Re:Show HN: A game that tests how well you know your local area by rockostrich on Saturday March 19, 2022 @12:39PM (#30735196)
It's also kinda silly to do streets for something like Manhattan since it's a grid. But landmarks/businesses would work really well in any city.
Re:Show HN: A game that tests how well you know your local area by bwanab on Saturday March 19, 2022 @01:50PM (#30735905)
Agreed. I live in a densely packed urban neighborhood. There’s no way I know streets that aren’t main streets more than 1/2 mile away.

Cool concept though. This would be a nice game at many geographic magnitudes.

Re:Show HN: A game that tests how well you know your local area by petschge on Saturday March 19, 2022 @12:48PM (#30735307)
In my case it covers three different villages...
Re:Show HN: A game that tests how well you know your local area by jimmaswell on Saturday March 19, 2022 @02:21PM (#30736240)
I'm only getting a blank background on Firefox, both Android and desktop.

Edge too, is the service just down?

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @02:25PM (#30736298)
Yes but it should be back now?

My hosting provider (Cloudflare Pages) seem to have a limit on "functions" I cannot increase. I've worked around it for now but it might open at Cork for everyone. If so, you can zoom out and tap the map to select somewhere else.

Re:Show HN: A game that tests how well you know your local area by jimmaswell on Saturday March 19, 2022 @02:30PM (#30736347)
I put my town's coordinates in manually and it's still blank, and I don't see anything zooming all the way out.

What do you mean by functions? I would just request location with javascript and use Google geolocation as a fallback.

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @03:45PM (#30736958)
OK I'm done with fighting fires for now and can answer that last question. Cloudflare offer "functions" and "workers", they're like functions that run on the edge CDN nodes.

These functions receive geolocation information via a function argument. So I've a function that intercepts requests to the app, grabs the geolocation information, and rewrites the URL (inserting the coordinates e.g. /lat,lng).

I go into more detail about this in the blog post but originally it just opened in Cork for everyone. I disliked the idea of having an annoying browser prompt for location permissions. I made it for my dad so having no geolocation was fine to begin with and I eventually added the geolocation I described above. Less friction, no extra client-side requests.

Re:Show HN: A game that tests how well you know your local area by whoopdedo on Saturday March 19, 2022 @08:14PM (#30738771)
Those "annoying prompts" are there for a reason. How do you justify ignoring the users' wishes with regards to accessing personally identifiable information?

Also, why WebGL?

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @08:37PM (#30738883)
>Those "annoying prompts" are there for a reason

Yep, but not worth ruining the UX for marginally better geolocation in my case.

> How do you justify ignoring the users' wishes with regards to accessing personally identifiable information?

I don't know what you're referring to. If you're suggesting I'd prefer that apps & sites could access our location without asking, you're mistaken.

>Also, why WebGL?

The no-streets OSM raster map tiles were discontinued and I had to switch to custom Maptiler layers. They don't allow raster map tiles on the free plan.

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @03:21PM (#30736803)
OK it should be more back now. I migrated from Cloudflare functions to a Cloudflare worker. Make sure to clear your cache / hard reload though
Re:Show HN: A game that tests how well you know your local area by jwagenet on Saturday March 19, 2022 @02:14PM (#30736171)
Dropping a pin close enough on mobile to get 100 points was really difficult. I probably was only able to average like 12m accuracy even though the pin appeared to be in the correct place every time.

I also did my area twice and around 6/10 were either numbered or major roads that are very easy to ID. It might make sense to deemphasize larger or longer roads and numbered roads for a better balance of true local knowledge.

Re:Show HN: A game that tests how well you know your local area by lostlogin on Saturday March 19, 2022 @04:35PM (#30737360)
Zooming right in helps, but with 100% knowledge of the answers I still got points deducted.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @04:14PM (#30737165)
I will fix the pin accuracy issue for sure!
Re:Show HN: A game that tests how well you know your local area by modeless on Saturday March 19, 2022 @07:34PM (#30738546)
I found the game easy in an urban area where I've lived for only three years, but impossible in the rural area where I grew up. It seems to pick main roads in urban areas but in rural areas I get random side roads and cul-de-sacs. The circle should be much bigger in rural areas because people typically drive longer distances. Most of the roads I actually used were outside the circle.
Re:Show HN: A game that tests how well you know your local area by noisefridge on Saturday March 19, 2022 @05:12PM (#30737624)
Nice and fun. Have you considered points of interest, photos from open sources like Panoramio or Creative Commons search, links to Wikipedia articles?

Sometimes I get stumped and I also want a picture to explain it

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @05:14PM (#30737639)
Very interesting. No I haven't, thanks
Re:Show HN: A game that tests how well you know your local area by Breza on Wednesday March 30, 2022 @11:32AM (#30856569)
This is really cool! Could be a great training tool for first responders sitting around the firehouse waiting for a call. FFs/EMTs enjoy any chance to earn bragging rights over each other.
Re:Show HN: A game that tests how well you know your local area by JSoet on Monday March 21, 2022 @12:30AM (#30750283)
Fun game, great job, but sometimes the scoring seems kind of random, I would sometimes get ~80 points when placing it pretty much directly on the street, and then sometimes get 90 points when guessing and being a few blocks away...

Along with what you mentioned about having different difficulties in terms of radius, would also be fun to be able to choose the difficulty in terms of what types of streets (main streets vs side streets - e.g. only one type, or a mix, or turning down the selection of numbered streets somehow)

Re:Show HN: A game that tests how well you know your local area by darkerside on Sunday March 20, 2022 @08:47AM (#30742197)
I would suggest using intersections instead of streets. I'm not sure how it determines what segment of the street is correct, but I had some random guesses score higher than the correct street I knew but a part that wasn't highlighted in the result set.
Re:Show HN: A game that tests how well you know your local area by evil-olive on Saturday March 19, 2022 @09:16PM (#30739107)
this is an awesome idea!

only bit of feedback I have is that the street names may need some cleanup / filtering of some kind.

I picked a starting location in downtown Seattle (47.60882,-122.33087) and was told to locate "escalator"...it seems to have picked the escalator to the Pioneer Square light rail station as a "street" to be located.

Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @08:52AM (#30742233)
I've now excluded "escalator", thanks
Re:Show HN: A game that tests how well you know your local area by mohitc on Sunday March 20, 2022 @04:39AM (#30741111)
I was asked same street twice in 5 attempts
Re:Show HN: A game that tests how well you know your local area by adamlynch on Tuesday March 22, 2022 @04:53AM (#30763990)
This is now fixed! (Thanks to a contribution by johrpan)
Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @09:00AM (#30742273)
I will be looking into this for sure
Re:Show HN: A game that tests how well you know your local area by planetsprite on Sunday March 20, 2022 @08:58PM (#30748752)
I played once and it asked me to locate the same street 3 times in one 5 question round.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Monday March 21, 2022 @11:53AM (#30755520)
Will fix this, thanks. Any further info would be helpful
Re:Show HN: A game that tests how well you know your local area by adamlynch on Tuesday March 22, 2022 @04:53AM (#30763993)
This is now fixed! (Thanks to a contribution by johrpan)
Re:Show HN: A game that tests how well you know your local area by rubyfan on Saturday March 19, 2022 @05:58PM (#30737930)
how does this get my location? I use a Cloudflare WARP+ which seems to mask my IP for most sites but this one looks like it’s using a nearby cell tower?
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @06:00PM (#30737938)
I don't know exactly but I use the geolocation information Cloudflare gives me in my edge function/worker. It's not 100% accurate or reliable. Your result can vary minutes apart or depending on which network you're on.
Re:Show HN: A game that tests how well you know your local area by imadethis on Saturday March 19, 2022 @12:06PM (#30734900)
This would be actually helpful practice for first responders. FDs/EMS in my area are expected to memorize all of the streets in their region, and I imagine it’s the same for PDs too. Another layer on top of it would be to quiz you on how to get from a fixed point (the station) to a random intersection. For the US, you could also provide a random block on a street rather than an intersection.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @12:13PM (#30734969)
Huh, sounds similar to https://news.ycombinator.com/item?id=30734219. Thanks! I'd love to help first responders
Re:Show HN: A game that tests how well you know your local area by traceroute66 on Saturday March 19, 2022 @10:54AM (#30734219)
Fun, but you know what would be really cool ?

A Blue Book mode.

For those unfamiliar Blue Book refers to test "runs" done by London taxi drivers when they do The Knowledge[1].

It would be fun to be given, say "Australian High Commission, WC2 to Paddington Station, W2" and have to place multiple pins on the map and then graded on your result.

[1] https://www.youtube.com/watch?v=my4lDxOCCyg

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @11:00AM (#30734292)
So is the goal is to mark the route you would take? Sounds interesting.

Semi-related, it could show you two pins and ask you how long it would take to drive between them at a given time of day. It would compare your guess to Google Maps or similar.

Re:Show HN: A game that tests how well you know your local area by traceroute66 on Saturday March 19, 2022 @11:18AM (#30734446)
> So is the goal is to mark the route you would take? Sounds interesting.

Basically yes, the Blue Book works on turns so you would mark the turns.

So for the example I gave above (Australian High Commission - Paddington) you might mark the turns:

      ALDWYCH
      CATHERINE ST
      RUSSELL STREET
      DRURY LANE
      HIGH HOLBORN
      PRINCES CIRCUS
      ST GILES HIGH STREET
      EARNSHAW STREET
      NEW OXFORD STREET
      OXFORD STREET
      GT PORTLAND STREET
      MARGARET STREET
      CAVENDISH SQUARE
      HENRIETTA PLACE
      MARYLEBONE LANE
      WIGMORE STREET
      DUKE STREET
      MANCHESTER SQUARE
      MANCHESTER STREET
      GEORGE STREET
      EDGWARE ROAD
      HARROW ROAD 
      HARROW ROAD ROUNDABOUT
      BISHOP'S BRIDGE

> between them at a given time of day

Yes, I guess it could give you extra points for choosing less busy routes during rush hour.

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @11:21AM (#30734475)
Thanks for explaining!
Re:Show HN: A game that tests how well you know your local area by piceas on Saturday March 19, 2022 @09:54AM (#30733706)
Neat. Unfortunately appears to be limited to streets in your local area. I hoped/expected a list of interesting destinations in the area such as art installations, parks, or even popular restaurants etc.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @11:37AM (#30734627)
Thanks for the feedback! Will look into it
Re:Show HN: A game that tests how well you know your local area by lcuff on Saturday March 19, 2022 @07:23PM (#30738471)
Here is a different quiz about what you know about your local area. Pretty interesting.

https://kk.org/thetechnium/the-big-here-quiz/

Re:Show HN: A game that tests how well you know your local area by mnumber on Saturday March 19, 2022 @07:46PM (#30738620)
I do after school daycare and this is going to be great for my middle schoolers. Not that I dont need to work on all of these.
Re:Show HN: A game that tests how well you know your local area by piceas on Sunday March 20, 2022 @04:56AM (#30741177)
The geography student in me likes that the questions are bounded by your watershed.

As someone who grew up in a warm country I am also amused that the growing season is hinted as being bounded by the number of days from frost to frost.

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @07:27PM (#30738510)
Wow!
Re:Show HN: A game that tests how well you know your local area by function_seven on Saturday March 19, 2022 @01:52PM (#30735919)
This is a fun game!

I tried 2 areas: where I live today and where I delivered pizzas 20 years ago.

3/5 for my local area, 5/5 for my old stomping grounds. I’m no London taxi driver, but I do have a bit of Knowledge about my old neighborhood. We didn’t have GPS back then and we liked it!

The size of the circle was perfect. Just large enough to challenge, but not so large that random tiny streets miles away trip the player up.

Re:Show HN: A game that tests how well you know your local area by lwkl on Saturday March 19, 2022 @10:24AM (#30733945)
This is crazy hard it covers my whole city and parts of the metropolitan area. I guess you will have to play this a lot to get any good at it if you are living in a medium sized city in central Europe. :)

Edit: I think you should be able to make the radius a little bit smaller or add an option to choose from different radii.

Re:Show HN: A game that tests how well you know your local area by porjo on Saturday March 19, 2022 @05:47PM (#30737848)
Another change i think would be helpful for beginners is ability to set the road category e.g. only guess tertiary and greater roads
Re:Show HN: A game that tests how well you know your local area by another-dave on Sunday March 20, 2022 @02:02AM (#30740523)
Yes, +1 on this or if possible start with main roads & as you move along get more obscure ones interleaved in so the game gets harder as you play
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @06:18PM (#30738049)
Good idea
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @10:31AM (#30733996)
Great feedback, thanks. I also considered factoring in street length for difficulty modes.

My dad has gotten a perfect score a couple of times. Cork isn't huge but that's still very difficult. He's a human map

Re:Show HN: A game that tests how well you know your local area by robbedpeter on Saturday March 19, 2022 @11:26AM (#30734520)
Also, your dad is 99% of the way to having an enormous "memory palace" if he's got all of Cork memorized. All he needs to do is imagine a walk between any two points in Cork, then imagine the things he wants to remember at different places along that journey, such as at every intersection. To recall, simply imagine repeating the journey, and the remembered items will be at the intersections. Digits of pi or the order of a deck of cards are a good way to test it, and the cards bit is great for pub tricks and free beers.
Re:Show HN: A game that tests how well you know your local area by robbedpeter on Saturday March 19, 2022 @11:16AM (#30734430)
There's a tiny distance between this game and actual mnemonic techniques used by world champion memory athletes. Method of loci capitalizes on the fact that the brain stores memories using a map like structure, as a result of grid cells.

If you can, get a cabby in London with "The Knowledge" to do a session. Such cabbies are among elite humans, of a handful of disciplines known to alter the structure of their brains in a predictable way. Like Shaolin monks, Australian aboriginal shamans, and others, they've got an amazing superpower.

Neat game, and fascinating peripheral subjects, thanks!

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @11:55AM (#30734801)
Fascinating, thanks! I knew of memory palaces but I hadn't considered taxi drivers! Can't wait to tell my dad someone on the internet said he's a genius :P
Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @12:13PM (#30743889)
For now, I've reduced the circle radius by 20%. I plan to make it adjustable in the future.
Re:Show HN: A game that tests how well you know your local area by aasasd on Sunday March 20, 2022 @05:12AM (#30741228)
Very nice. I actually wanted to concoct something like this for Anki, with large streets of the city—since in this sprawl I sometimes only vaguely know what's on the other end of it. But didn't think that web maps could serve me for that.

Some minor nitpicks:

- If you could allow zooming in/out with double-tap-and-drag on phones, that would be cool. Specifically it would help with one-handed use.

- On a ‘square’, the road can go right around the pin, so the distance is measured inside this circle, and I get <100 points. Frankly I should've guessed that this would be the case, but kinda prefer that the app would do it for me.

- Perhaps there's not much use in offering streets that only have like a hundred meters inside the radius—especially since the page doesn't allow scrolling outside the circle, to more comfortably tap the street and not aim at the small chunk of it.

- OTOH it would be better if I could scroll somewhat outside the circle, to have the streets in the middle of the screen where it's more convenient to look and tap.

As a side remark: using this in European-style compact cities, especially in ‘old towns’, can be quite a hardcore mode. In the 19th century, the region in the circle comprised the whole city and some outskirts, so now there are a lot of old streets in this area. And with my smaller native city (half a million people), the circle covers most of it.

Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @09:21AM (#30742410)
Thanks for taking the time to write all that. Very helpful
Re:Show HN: A game that tests how well you know your local area by ajsnigrutin on Saturday March 19, 2022 @06:31PM (#30738139)
Fun "game", but asking you to identify one of the main roads, vs some minor, three-house road makes it very luck-based.

Also, I clicked directly on the (correct) road, and it took the points away, because the hitbox was off

https://i.imgur.com/yKONWUk.png

(Topniška ulica, Ljubljana, Slovenia)

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @06:55PM (#30738319)
OK I can try to come up with better randomization.

About the road, this is due to a discrepancy in the OpenStreetMap data and the actual map tiles I'm using. Hmm. Not sure what I could here. Maybe I can be more lenient when you're two pieces of the same road

Re:Show HN: A game that tests how well you know your local area by pivo on Saturday March 19, 2022 @11:41AM (#30734663)
I failed completely because in my selection (US: Boston/Cambridge) there are multiple streets with the same name like Broadway and First Street, and I always picked the wrong one.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @11:53AM (#30734789)
If they have exactly the same name then you should've gotten points. If so, please give me an example and I'll fix it. If it was "Roxbury St" versus "Roxbury Ave", then you're just unlucky sorry
Re:Show HN: A game that tests how well you know your local area by myself248 on Saturday March 19, 2022 @01:35PM (#30735746)
Yeah, this is killing me. NORTH WOODWARD AVE turns into WOODWARD AVE turns into NORTH WOODWARD AVE turns into SOUTH WOODWARD AVE turns into WOODWARD AVE turns into NORTH WOODWARD AVE completely at random, and none of them count as each other. And sometimes multiple parts of the same road show up in the same quiz.

I know this is fundamentally an OSM data problem, but it's also your UX problem now. (N 42.5, W 83.17 if you want to have a look.)

Also it was quizzing me on park trails. And I just got an underwater tunnel at the zoo. I guess those are technically named ways in some manner of speaking, but they're definitely not streets with signs.

All that aside, this is really fun! Personal best 470/500. I wish I could make it longer; n=5 is a small sample and my scores vary tremendously from one run to the next.

Re:Show HN: A game that tests how well you know your local area by dwiel on Saturday March 19, 2022 @06:36PM (#30738175)
All the different variations of names of the same road definitely made the game too frustrating to play much in my area. Simply counting all names that are only different by cardinal direction as the same name would solve it. I imagine in some places though this would be the wrong behavior.
Re:Show HN: A game that tests how well you know your local area by Tempest1981 on Saturday March 19, 2022 @02:30PM (#30736346)
> quizzing me on park trails

I got one of those too, but I liked it. Nice to explore the major bike/pedestrian paths.

I guess it could be an option.

Re:Show HN: A game that tests how well you know your local area by myself248 on Saturday March 19, 2022 @03:25PM (#30736825)
Yeah, I figured out it was a park trail, clicked in the middle of the only park in the area with substantial trails, and actually scored very well on it. But the zoo exhibit...
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @04:10PM (#30737136)
I will be reviewing that definitely. Thank you
Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 27, 2022 @09:57AM (#30820276)
Fixed!
Re:Show HN: A game that tests how well you know your local area by tkgally on Saturday March 19, 2022 @10:44PM (#30739571)
Great game. You may have a viral hit on your hands.

A few comments:

I tried it first in Yokohama, Japan, where I have lived for more than twenty years. It worked well. Although most streets here don’t have names, the game called up the names of bridges, highways, and even a moving walkway, which was fun. I then tried Osaka, which I have visited many times, and it worked well there, too.

In both cases, the names appeared in Japanese script, which works for me because I read Japanese. If the OpenStreetMap data for some locations is multilingual, you might want to give users the option of choosing the display language for the choices. Also, you might offer a wider range of landmarks for people to choose from. In Japan, the names of districts, buildings, parks, railways stations, bus stops, rivers, and mountains would be nice to include. I tried Manhattan, too, and half of the choices were numbered streets and avenues, which got boring quickly; the names of buildings, squares, parks, etc. would make it more interesting.

In the two Japanese cities, after I entered my choice, the map highlighted the correct location with a dotted line leading to it; I assume that was the intended behavior. When I tried it for Pasadena, California, where I grew up, and Manhattan, though, that highlighting did not appear and the dotted line just went off to the left side of the screen. I used Safari on MacOS. See the following screenshots:

http://gally.net/temp/yokohama.jpg

http://gally.net/temp/pasadena-california.jpg

http://gally.net/temp/newyorkcity.jpg

Finally, a search box to find the start location would be nice. It was cumbersome to zoom out, scroll from Japan to Manhattan, and then zoom back in.

Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @09:26AM (#30742442)
Thank you.

> even a moving walkway

You've got to love Japan :D

>the OpenStreetMap data for some locations is multilingual, you might want to give users the option of choosing the display language for the choices.

This is something I planned to. I actually do it for Ireland. I show the Irish and English version of the name. And the sign is in the style of real Irish street signs. I just need to do this for more countries.

> Also, you might offer a wider range of landmarks for people to choose from. In Japan, the names of districts, buildings, parks, railways stations, bus stops, rivers, and mountains would be nice to include.

I'm going to look into expanding the objects but it's tough to keep everyone happy. It can be area-dependent.

>that highlighting did not appear and the dotted line just went off to the left side of the screen

Wow, not sure what's happened here. Will fix.

Re:Show HN: A game that tests how well you know your local area by bussiere on Saturday March 19, 2022 @06:04PM (#30737964)
Good concept but the circle on european city may have too many streets to know them.

having the option to choose the size of the circle could be nice :)

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @06:05PM (#30737970)
This has come up so much. I'll be adding it, thanks!
Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @12:16PM (#30743938)
For now, I've reduced the circle radius by 20%. I plan to make it adjustable in the future.
Re:Show HN: A game that tests how well you know your local area by alistairSH on Saturday March 19, 2022 @01:57PM (#30735983)
No map loading for me - too much traffic? Safari on iOS.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @02:23PM (#30736267)
Yes but it should be back now?

My hosting provider (Cloudflare Pages) seem to have a limit on "functions" I cannot increase. I've worked around it for now but it might open at Cork for everyone. If so, you can zoom out and tap the map to select somewhere else.

Re:Show HN: A game that tests how well you know your local area by AlecSchueler on Saturday March 19, 2022 @02:41PM (#30736447)
Still no map for me.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @02:43PM (#30736461)
Thanks. I've confirmed it's back but then somehow Cloudflare started served an old deploy again for some time and now it's back working again. I didn't change anything. Ugh.

https://5fee8b00.backofyourhand.pages.dev/ may be more reliable but who knows.

As for the original issue, Cloudflare has a 100k function invocation limit and I can't even pay to increase it.

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @03:21PM (#30736804)
OK it should be more back now. I migrated from Cloudflare functions to a Cloudflare worker. Make sure to clear your cache / hard reload though
Re:Show HN: A game that tests how well you know your local area by AlecSchueler on Tuesday March 22, 2022 @06:27PM (#30772426)
Thanks, it works for me now! I wonder if you could scale the scores to allow for changing the area size?
Re:Show HN: A game that tests how well you know your local area by fuzzybassoon on Saturday March 19, 2022 @02:00PM (#30736009)
Same here. It was working when I first visited 10 minutes ago, but I got an error at some point and now it won't load (multiple browsers, multiple computers).
Re:Show HN: A game that tests how well you know your local area by Twisell on Saturday March 19, 2022 @02:09PM (#30736117)
Probably a HN hug of death situation.

The app seem to rely on a third party basemap provider, they usually have have a quota beyond which the service will stop serving maps for the app.

Re:Show HN: A game that tests how well you know your local area by Ultimatt on Sunday March 20, 2022 @04:58AM (#30741184)
Scoring is super harsh for the UK where we don't have a grid system and a million small streets.
Re:Show HN: A game that tests how well you know your local area by toxik on Sunday March 20, 2022 @07:42AM (#30741842)
Found the same, centered on my island of my city and it basically only picked tiny streets near the city center and not once on my actual island.
Re:Show HN: A game that tests how well you know your local area by cerivitos on Sunday March 20, 2022 @06:05AM (#30741439)
Love it! As many pointed out, playability is quite dependent on where you live. Perhaps you could also use landmarks rather than streets, but I'm guessing OpenStreetMap POI data is not as robust as Google Maps... And Google Maps Places API is expensive :)
Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @09:00AM (#30742277)
Yeah I'll need to look into it and check a few areas
Re:Show HN: A game that tests how well you know your local area by rsstack on Saturday March 19, 2022 @10:49AM (#30734181)
I didn't realize it was just going to be street names, and picked my area in Manhattan. The streets and avenues are numbered :)
Re:Show HN: A game that tests how well you know your local area by IIAOPSW on Sunday March 20, 2022 @06:06AM (#30741442)
I did the same, but got tripped up by clicking on the East side of the Island when it asked for "W 14th Street".
Re:Show HN: A game that tests how well you know your local area by mypalmike on Saturday March 19, 2022 @12:34PM (#30735154)
Same in my part of Seattle.
Re:Show HN: A game that tests how well you know your local area by Normal_gaussian on Saturday March 19, 2022 @10:32AM (#30734011)
This is fantastic. My gf and I have been playing it in a cafe, and doing abysmally - but just sent it to our parents who will greatly enjoy quizzing themselves! Thanks, you've made our day a little bit funner and help keep our families a little bit closer.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @10:40AM (#30734096)
Glad to hear it! My older family members love it the most. Maybe because they didn't grow up with Google Maps
Re:Show HN: A game that tests how well you know your local area by microtherion on Saturday March 19, 2022 @09:12PM (#30739085)
Great game! The one "unfair" question I got was "Treppe Tiefgarage" which means "Stairs to the underground parking garage". Difficult to figure out how to filter these out in the general case.
Re:Show HN: A game that tests how well you know your local area by flicken on Sunday March 20, 2022 @04:23AM (#30741053)
Similarly, I got a "Zugang Steig B" (Entranceway B).

Maybe adding a button to skip the question: "not really a street".

Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @08:55AM (#30742251)
Great idea! For now I quickly excluded "Zugang Steig"
Re:Show HN: A game that tests how well you know your local area by IIAOPSW on Sunday March 20, 2022 @06:05AM (#30741436)
I got "tunnel entrance street". There were two tunnels this might have referred to. I picked the one on the wrong side of town.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @08:55AM (#30742250)
Thanks, I've excluded it
Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @08:55AM (#30742248)
Thanks. I've excluded it
Re:Show HN: A game that tests how well you know your local area by ladberg on Saturday March 19, 2022 @05:53PM (#30737887)
Pretty cool! As a suggestion it might be a good idea to copy one of Wordle's simple-but-genius features and make it easy for users to share a text based summary of their results with others.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @05:56PM (#30737913)
That was a great idea. I'll have to come up with a nice way of representing your results
Re:Show HN: A game that tests how well you know your local area by baliex on Saturday March 19, 2022 @06:02PM (#30737953)
You could have a look into how https://worldle.teuteuf.fr/ does it. I'm sure there are better ways but might spark some inspiratino at least!
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @06:08PM (#30737994)
Thanks. Looks like this:

#Worldle #57 X/6 (69%) ⬛⬛⬛⬅ ⬛⬛⬇ ⬛⬛⬇ ⬛⬛⬇ ⬛⬛⬇ ⬛⬛↘ https://worldle.teuteuf.fr

Re:Show HN: A game that tests how well you know your local area by taken_every_ on Saturday March 19, 2022 @06:44PM (#30738237)
Might be better to base this off of buisnesses and landmarks in your area. I know mine quite well but fucked if I know where some tiny side street with a common name is. Maybe that works better with American style suburbs and grid cities, but in Europe it's pretty difficult if you are not specifically a delivery person or taxi driver.
Re:Show HN: A game that tests how well you know your local area by scyzoryk_xyz on Saturday March 19, 2022 @06:32PM (#30738147)
This is wonderful.

I used to be a Lyft driver, and something that seemed would be interesting at the time is a system, not unlike this one, for learning a city. In London to drive a cab you must do this super difficult test, and this means cabbies are very knowledgeable about the city. This is something in that vein, love it.

Re:Show HN: A game that tests how well you know your local area by divbzero on Saturday March 19, 2022 @06:48PM (#30738268)
Reminds me of this study [1] from awhile back where brain scans at University College London revealed that “part of the hippocampus grew larger as the taxi drivers spent more time in the job”.

[1]: http://news.bbc.co.uk/2/hi/science/nature/677048.stm

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @06:43PM (#30738228)
Great, thanks!
Re:Show HN: A game that tests how well you know your local area by MaceOutWindu on Sunday March 20, 2022 @01:16AM (#30740355)
Interesting. Did something similar with a self hosted version of geoguesser with my friends. We set it up right near our school. We have multiple routes walking home and the amount of precision we could get was insane. One of my friends was able to get only a few meters off from the original position almost instantly.

I hosted it here if anyone wants to try https://geoguess.alexmehta.xyz/createmap (advanced map and draw your boundaries).

I found it more fun than Back of Your hand just because I frankly don't remember too many streets but can recognize the overall area from walks I go on.

Re:Show HN: A game that tests how well you know your local area by hirundo on Saturday March 19, 2022 @11:38AM (#30734639)
What you get if you live in the boonies:

"There aren't enough streets in this area. Please select somewhere else"

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @11:51AM (#30734766)
Yeah. Someone did ask today to be able to increase the circle's radius for cases like this
Re:Show HN: A game that tests how well you know your local area by astura on Saturday March 19, 2022 @12:41PM (#30735234)
Depends on what you're looking for but I think this would be more fun if it excluded very tiny streets, like minimum length. I got what is essentially a driveway for two houses that's not paved or labeled, nobody would know it's name (or that it was a named street even) unless you lived on it or next door to it. (I live next door to it). Might be less fun if someone got that on their first try.

But, again, some people are looking for a challenge, so maybe make it an option.

Re:Show HN: A game that tests how well you know your local area by admax88qqq on Saturday March 19, 2022 @12:44PM (#30735268)
Now you know more about your local area!
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @01:00PM (#30735430)
It's interesting seeing so many different opinions on the difficulty (whether it's street length, circle radius, etc). I wonder would the same people's opinions on GeoGuessr correlate or not
Re:Show HN: A game that tests how well you know your local area by astura on Saturday March 19, 2022 @12:49PM (#30735316)
No I don't, I said I live next door to it, so I knew it.
Re:Show HN: A game that tests how well you know your local area by jedberg on Saturday March 19, 2022 @02:00PM (#30736012)
I did where I live now, and only got 100/500 (perfect score on the major road, no idea where the rest were). I did my childhood home and got 99/500.

My suggestion would be to stick to majors and semi-majors (longer through streets). It would be more fun that way.

Also there may be a bug, for the one road I got in the second try, I put the marker dead center of the entire road, but it said I was 4 meters off and gave me a 99, even though the green line was under the pin.

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @04:46PM (#30737458)
Thanks for the feedback. I'll definitely fix the pin accuracy and I'm thinking about what to do around street length & difficulty
Re:Show HN: A game that tests how well you know your local area by dataflow on Sunday March 20, 2022 @04:52AM (#30741165)
> I'm thinking about what to do around street length & difficulty

Here's one idea if it might help you get started (though you can polish it):

- Mark all "dead ends".

- Mark all private streets.

- Recursively (or perhaps I should say iteratively, depending on your POV) mark all roads as X that only lead to previously-marked roads.

- Non-recursively, unmark each marked road that is both adjacent to an unmarked road AND that satisfies some reasonable heuristic (such as "being within 2 intersections of the center of your circle").

- Also unmark all freeways/highways/expressways/other reasonably-major roads (although few if any of them should be marked at this point)

- Delete all marked roads from your list of candidates.

This should ensure that every candidate road actually has a non-negligible chance of being at least seen by random drivers, and not just by residents who are forced to drive on it on the way home.

You can obviously augment

Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @09:31AM (#30742463)
OK thanks but I do need to compute all of this. Plus some roads are broken into a lot of segments so I have to do more work first in finding & joining them up. Hopefully I could do all of it but just saying, it might be too much.
Re:Show HN: A game that tests how well you know your local area by lienhoangduy on Monday March 21, 2022 @11:17AM (#30755057)
Hey, It's a really fun app. Congratulations on the launch! Some small feedbacks: - The radius should be adjustable - Compete with friends (Can make it viral) - Don't know how it calculates the point. Sometimes I choose the place very far from the target but I've gotten a higher score than the time I chose the near one.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Monday March 21, 2022 @11:57AM (#30755568)
Thank you.

>The radius should be adjustable

Yes I will be working on an adjustable radius (I made it 20% smaller yesterday btw) and difficulty modes.

>Compete with friends (Can make it viral)

You can compete with friends. Click "Learn more" to figure out how to do that. I will also be looking into a "share score" functionality as well as leaderboards maybe.

>Don't know how it calculates the point

I'm aware of an issue in how the distance is measured and will fix it. Sometimes there can also be a discrepancy between the data and the rendered map.

Thanks for the feedback!

Re:Show HN: A game that tests how well you know your local area by Doctor_Fegg on Saturday March 19, 2022 @10:36AM (#30734063)
This is great!

> The map tiles are loaded in from two OpenStreetMap tile providers (one with street names, one without).

You probably don't need to do that. You can use the same tiles, the same stylesheet even, and just hide the street names layer in code:

https://docs.mapbox.com/mapbox-gl-js/example/toggle-layers/

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @10:55AM (#30734240)
I'll look into this. Since I wrote that initially, the no-streets OSM map was discontinued so I switched to Mapbox & Maptiler. But I do use two full layers (one custom one without street names) rather than doing what you suggest. Hopefully it's not a paid feature.
Re:Show HN: A game that tests how well you know your local area by vmladenov on Sunday March 20, 2022 @04:09PM (#30746141)
Minor feedback: the game amusingly asked me for the street I live on first, so I tapped it, but it said I was 9m away. When I zoomed in very close, I saw it was calculating a diagonal from the pin to the nearest intersection rather than a perpendicular line to the street.

Might be worth accounting for the zoom level for taps / adjusting the distance. I did this on iOS.

Re:Show HN: A game that tests how well you know your local area by adamlynch on Tuesday March 22, 2022 @04:51AM (#30763978)
Thank you! This is an issue I'm aware of and will fix. Never considered zoom... interesting!
Re:Show HN: A game that tests how well you know your local area by JGM_io on Tuesday March 29, 2022 @04:07PM (#30847705)
But why not use shops, parks, etc as they are what you want to really want to get to know.

Then have the game get you to name the streets to get there or something.

Shops would pay to be listed?

Re:Show HN: A game that tests how well you know your local area by asdfasgasdgasdg on Saturday March 19, 2022 @10:51AM (#30734197)
Would be cool if bars, restaurants and tourist attractions were added! But a fun little geoguessr like romp either way.
Re:Show HN: A game that tests how well you know your local area by myself248 on Saturday March 19, 2022 @01:37PM (#30735769)
Yessss, this is what I imagined from the headline. But I suspect the data quality is trash...
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @11:52AM (#30734772)
Thanks for the feedback! Will look into it
Re:Show HN: A game that tests how well you know your local area by et-al on Saturday March 19, 2022 @07:46PM (#30738618)
I love this!

One question, though: how are you calculating distance from a street? Here, I thought I was pretty spot on for a street, but it still said I was 56m away.

Screenshot: https://imgur.com/a/L4usV6W

Re:Show HN: A game that tests how well you know your local area by kovvy on Saturday March 19, 2022 @09:09PM (#30739062)
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.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @10:07AM (#30742704)
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
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday April 02, 2022 @11:00AM (#30888735)
This is fixed now!
Re:Show HN: A game that tests how well you know your local area by jokoon on Saturday March 19, 2022 @07:04PM (#30738366)
Looks great, but I'm curious about the performance of this.

Does it pull vector tiles? Did you build those vector tiles yourself?

Seems like your server has a hard time...

I picked my neighborhood since your app located me 1000km away from where I live.

I started the thing and it backed away from the former incorrect coordinates.

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @07:14PM (#30738420)
It's "serverless". I don't have a web server of my own and there's no database.

The first iteration was very fast. I got 100 in every category in Lighthouse (but that doesn't cover everything of course). It used OSM raster map tiles. The no-streets map tiles were discontinued so I had to switch to using custom Maptiler map layers via Mapbox. Still more than fast enough IMO. I aggressively cache the Overpass data per area.

Then I migrated to Cloudflare pages to access their geolocation information via an edge handler. That slowed down visits without a LatLng in the URL because it does a couple of redirects.

Then today I had to fight multiple fires due to traffic and usage limits. I managed to workaround all the issues as they arose but the routing of page loads isn't ideal right now. Cloudflare are raising limits for me at midnight UTC so I'll be moving back to the faster setup again.

Re:Show HN: A game that tests how well you know your local area by laurent123456 on Saturday March 19, 2022 @05:45PM (#30737838)
Not sure the selected area is suitable for a city like London - there are just too many small streets in every directions to be able to know them all, or even half of them.

It's possibly more suitable in US cities for example that are divided into large blocks and large roads.

Re:Show HN: A game that tests how well you know your local area by sapphire_tomb on Saturday March 19, 2022 @06:07PM (#30737981)
Oh I don't know. I'm going to send this to a friend of mine who's an ex black cab driver. If he doesn't get full marks I'll be amazed.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @06:17PM (#30738048)
Report back :)
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @05:48PM (#30737857)
Thanks. I'm considering adding an option to change the radius and or difficulty modes which filter out streets by length.
Re:Show HN: A game that tests how well you know your local area by dr_dshiv on Saturday March 19, 2022 @05:52PM (#30737883)
I noticed that some areas pop up more than others. Is there like a difficulty score that you are calculating in the back? Making it easier is definitely a challenge, I’d guess. The major landmarks simply matter more.

But, I LOVED playing round after round in Amsterdam, learning more about a city I definitely don’t know like the back of my hand!

MCQs for marked areas would be nice— guessing the name of a place given a location.

Keep going!! This is really awesome.

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @06:17PM (#30738046)
Nah it's pretty dumb right now. All I do is filter out some names like "Alley" and join same-named streets.

I don't want to make it too easy but I have gotten a lot of feedback today about difficulty (area boundary/radius, street length, etc) so I'll make some changes and hopefully I can keep going in the right direction.

Another idea I had was to add hints like maybe you could have a special button you could press once per round that would shrink the circle for the given street and then go back to the normal size next round.

Thanks for the feedback!

Re:Show HN: A game that tests how well you know your local area by dr_dshiv on Saturday March 19, 2022 @07:23PM (#30738472)
If you simply calculate the average error, you could A/B test the effect of a version with reduced difficulty (e.g., with areas with have >5-10% success) vs random. I imagine people will play longer when they get some correct. What difficulty level do you think is appealing? I was at about 5-10%. I think 50% would be more engaging. By improving difficulty, you’d have the side effect of focusing more on more important locations.

Again, it’s super.

Re:Show HN: A game that tests how well you know your local area by tuxlifan on Sunday March 20, 2022 @08:22AM (#30742066)
This is amazing, fun and educational in one package! Thank you! Sorry this post got very long ;-)

Having difficulty settings like

* tourist

  main streets / squares, maybe some (renowned - although that might take some additional Wikipedia/Wikidata data sources :-))
  landmarks if those can easily enough be extracted from OSM data

  easter egg mode for s/Paris/your favourite City with underground transportation/: find a specific metro station :-) (any entrance would count)
* resident

  "tourist" + smaller streets + any street really close to the circle center (15 minutes by foot / 5 minutes by car
  -- oh, you'll just have to add flooding algorithm :-) ^^) 
* pedestrian

  "resident" + smaller streets everywhere but with greater probability closer to the circle center + footpaths
  (although with them probably lacking proper names most of the time that could be hard - but you could include
  e.g. streets from pedestrian zones)
* taxi driver

  everything ^^
would be great :-)

And then there could be (best optional) penalty modes, too:

* "resident"+:

  if you pin a street that is more or less orthogonal to the target street
  (say their mean directions intersect at more than 45 degrees ; and the pin is sufficiently
  far away (30m / 10% of map height / half a block?) from their intersection (if any exists)
  to rule out precision errors) you get only 1/2 the points
* "resident":

  if you pin a street the wrong direction off a main street (and the target street
  does not cross the main street) you get only 2/3 the points
  (i.e. main streets intersecting the plane and you picked the wrong "half")

  "tourist":

  the same but for cities with rivers where you picked the wrong bank


I also found the circle a bit big for my taste/confidence and cheated a bit by not placing the circle center at my location but so that I would still get my neighborhood but more of the outskirts than the city center...

I also got very lucky with the streets, so got 330/500 on my first try. One was certainly also due to a square that is also used (at some specific times) for car traffic.

As an interesting effect, I got the first street wrong by some meters (and orientation :-\) and the 5th street was the same street again. At first I was a bit puzzled, and then got full marks for that one :-) I saw that you got the report of repeating streets already in some other comment already but that experience led me to another idea:

It would be a great learning aid to (optionally) go through the (widely?) missed streets again after the 5 rounds.

And if we could even re-claim some (small) amount of points for getting them right the second time that would certainly help our brains etch in the correct position even more :-)

A small aside: I found it pleasantly devious that the circle restricts the scrolling at higher zoom levels! Just in the cases where the target street is very close to the border it might be nice to relax it a bit though...

And while trying it out on Desktop I discovered a possible bug:

While choosing the location, when pressing the "Zoom In" button 2-4 times suddenly street names were displayed again! Is this intentional so people can easier find their starting point? Firefox 98.0 on Linux

My last point:

Would it be possible to export a map view to print it out in good quality for offline reconnaissance / tinkering?

Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @11:40AM (#30743565)
Thanks for the kind words and for your time in writing this. Great feedback. FYI I'm tracking issues & requests here: https://github.com/adam-lynch/back-of-your-hand/issues

I love the idea of difficulty modes like "taxi driver". That might help in making everyone happy; people have wildly varying opinions on difficulty.

>A small aside: I found it pleasantly devious that the circle restricts the scrolling at higher zoom levels! Just in the cases where the target street is very close to the border it might be nice to relax it a bit though...

You're the second person to mention that some amount of over-scrolling would be helpful so I'll add that soon.

>While choosing the location, when pressing the "Zoom In" button 2-4 times suddenly street names were displayed again! Is this intentional so people can easier find their starting point? Firefox 98.0 on Linux

OK thanks. I think this is just that the map tiles didn't load quick enough and you saw through to the layer with streets. I'll look into it soon.

>Would it be possible to export a map view to print it out in good quality for offline reconnaissance / tinkering?

I'm not sure what you mean here. Can't you get maps elsewhere? Or do you mean the final screen where it shows the maps with the 5 streets marked out?

Re:Show HN: A game that tests how well you know your local area by drusepth on Saturday March 19, 2022 @09:23PM (#30739136)
I couldn't even find my street to start from. I think it's safe to say I don't know my local area.

(I'd probably play a version where you could customize the area radius, though! ...I'd probably still lose with a radius of like 3-4 blocks, though...)

Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @12:13PM (#30743895)
For now, I've reduced the circle radius by 20%. I plan to make it adjustable in the future.
Re:Show HN: A game that tests how well you know your local area by ossusermivami on Saturday March 19, 2022 @04:18PM (#30737211)
I admin I know nothing of my neighboroud, pretty fun tho and made me figuring it out
Re:Show HN: A game that tests how well you know your local area by wwwpatdelcom on Wednesday March 23, 2022 @11:59AM (#30779842)
I got an error:

> Cannot parse Overpass API response https://backofyourhand.com/build/bundle.js:6:1039277 asyncFunctionResume@[native code] [native code] promiseReactionJobWithoutPromise@[native code] promiseReactionJob@[native code]

Re:Show HN: A game that tests how well you know your local area by chadlavi on Saturday March 19, 2022 @01:33PM (#30735730)
475/500 in Brooklyn, which I will consider a total success. Neat game!
Re:Show HN: A game that tests how well you know your local area by mahathu on Saturday March 19, 2022 @10:46AM (#30734155)
adam, I loved this and also shared it in my family WhatsApp group. we all had a lot of fun playing it, thanks for the great idea and execution! one minor suggestion: consider adding a cross or some other indicator at the circle of the screen during the map selection stage. I found that sometimes you want to move the circle a few metres in some direction, but it's difficult to guess/tap where the new center should be without knowing exactly where the current one is.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @10:58AM (#30734268)
Great to hear! Thanks for the feedback. An alternative might be to make the circle draggable
Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @12:43PM (#30744205)
I've added a marker to the centre of the circle. Thanks again
Re:Show HN: A game that tests how well you know your local area by marc_abonce on Saturday March 19, 2022 @06:59PM (#30738336)
Great game!

One time I got a the same avenue twice in the same round, but I don't know if it was a bug in the game or if the data is duplicated in OpenStreetMap.

Still great, though.

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @07:16PM (#30738434)
Thanks, I'll look into that
Re:Show HN: A game that tests how well you know your local area by ape4 on Sunday March 20, 2022 @06:42PM (#30747514)
Me too.
Re:Show HN: A game that tests how well you know your local area by realty_geek on Sunday March 20, 2022 @05:36AM (#30741321)
Nice simple idea, great execution. I would love to test some of my local estate agents to see how well they know their city ;)
Re:Show HN: A game that tests how well you know your local area by hackernewds on Sunday March 20, 2022 @05:24AM (#30741273)
I think this game would benefit greatly if I could just input my ZIP code and the map would move over to that starting point?
Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @09:03AM (#30742288)
I see the benefit but:

1. I was trying to keep the UI very minimal.

2. ZIP codes are not universal / consistent.

3. I imagine any API I'd have to use for this would cost me.

I'm not against it though but it needs some thought.

Re:Show HN: A game that tests how well you know your local area by heyfirst on Monday March 21, 2022 @11:21AM (#30755105)
Great game! It's really fun bro. I now understand that I have no idea of my city at allll. LOL
Re:Show HN: A game that tests how well you know your local area by worstestes on Saturday March 19, 2022 @11:15AM (#30734422)
Hey Adam! This is awesome! Have you ever considered using something like MapLibre as an open source alternative to MapBox?
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @11:18AM (#30734447)
I wasn't aware of it, thanks. I didn't use Mapbox originally but I had to switch after the OSM no-streets tiles were discontinued. I'll look into it!

https://github.com/adam-lynch/back-of-your-hand/issues/15

Re:Show HN: A game that tests how well you know your local area by jdavis703 on Saturday March 19, 2022 @06:32PM (#30738148)
This game was fun, but it’s way too easy. I suspect 90% of players score over 90 points. Do you have any data on this?
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @06:46PM (#30738253)
Damn, I should've tracked that. Judging by the responses here today, it's both too easy and too difficult simultaneously :/
Re:Show HN: A game that tests how well you know your local area by bredren on Saturday March 19, 2022 @05:16PM (#30737649)
Well done! Sent it to my pal who likes to go on long walks and another who enjoys bicycling the city streets.
Re:Show HN: A game that tests how well you know your local area by planb on Saturday March 19, 2022 @04:36PM (#30737381)
Scary. From the hundreds of streets in my hometown it asked for 2 of the 4 where I have already lived.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @04:41PM (#30737417)
I made it for my dad for Christmas and the very first time he played it was the tiny street where he grew up. He didn't believe me that it was random
Re:Show HN: A game that tests how well you know your local area by anandsoft on Wednesday March 23, 2022 @01:55PM (#30781286)
good, nice to play with! For India, it would be a bit difficult to play as the roads are some times numbered and some times given a name. Dont see any hint buttun!
Re:Show HN: A game that tests how well you know your local area by adamlynch on Friday March 25, 2022 @08:39AM (#30801405)
I've considered adding hints. Do you have ideas? Mine:

1. Give names of intersecting streets. 2. Reduce the circle by half (just for this street). 3. Show a photo. 4. Allow you to drop a pin and tell you the distance (but not the direction). Then you can confirm the pin or move it one more time.

Re:Show HN: A game that tests how well you know your local area by humanistbot on Saturday March 19, 2022 @04:25PM (#30737284)
I kept getting "Alley" for a city with lots of alleys (DC), which was very frustrating.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @04:40PM (#30737407)
OK I've updated it to exclude "Alley". Thanks
Re:Show HN: A game that tests how well you know your local area by humanistbot on Saturday March 19, 2022 @06:42PM (#30738221)
Thanks!
Re:Show HN: A game that tests how well you know your local area by brianzelip on Sunday March 20, 2022 @07:41AM (#30741834)
Nice work!

> I've always wanted to try a bottom-anchored design, so I took my chance.

I know exactly what you mean!

Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @08:48AM (#30742203)
Yessss
Re:Show HN: A game that tests how well you know your local area by fennecfoxy on Wednesday March 23, 2022 @10:50AM (#30779035)
This was funny to play in London. I'm not even central and the circle still covers like 4 boroughs!

Granted, I'm also directionally deficit.

Re:Show HN: A game that tests how well you know your local area by leetrout on Saturday March 19, 2022 @10:27AM (#30733967)
The streets in my town were not completely highlighted and counted off points. I assume that is an issue with how the shape is interpreted because the street name changes in a turn that isnt a clear intersection.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @10:36AM (#30734060)
If you could give me an example, I'll look into it.

I ran into issues like this with a strange streets (described here https://adamlynch.com/back-of-your-hand/#the-lioscarrig-driv...), so I consider any two streets with the same name in the OpenStreetMap data to be the same street. I.e. if you put a marker down near any of them, you get points.

However, if the section of road has a different name, then it's different.

Re:Show HN: A game that tests how well you know your local area by leetrout on Saturday March 19, 2022 @03:21PM (#30736807)
I think the OSM data is bad. Lots of street highlights dont match the correct names.

Thanks for the response.

I can look at what you are using from overpass later and see what is up with their data.

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @04:12PM (#30737159)
Great yeah, I was going to suggest we could contribute fixes back to OSM if that was the issue :)
Re:Show HN: A game that tests how well you know your local area by emyeskay on Saturday March 19, 2022 @11:58PM (#30739969)
Cool game. Add an option to share score (similar to what wordle does).
Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @08:58AM (#30742260)
Will do, thanks
Re:Show HN: A game that tests how well you know your local area by ape4 on Saturday March 19, 2022 @10:54AM (#30734225)
I am missing something. It started me in Ireland - I am in North America
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @10:56AM (#30734255)
It must not have been able to detect where you are located. You can zoom out and click/tap the map to choose the location. And it'll remember that location next time.

It defaults to Ireland in this case because I'm Irish.

Re:Show HN: A game that tests how well you know your local area by ape4 on Saturday March 19, 2022 @11:03AM (#30734317)
Thanks. Using Firefox on Windows laptop, FYI.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @11:05AM (#30734331)
Thanks. It's a third-party server-side API I use so it would be just based on your ID address I think. You can go here to see where it thinks you are: https://cloudflare-pages-geolocation.pages.dev. However, this can change if you reload it minutes apart or if you turn on/off WiFi, etc. It's not 100% reliable
Re:Show HN: A game that tests how well you know your local area by zamfi on Saturday March 19, 2022 @11:28AM (#30734540)
I was also started in Cork in-game, while this link showed me the right location.

I think your integration may have a bug?

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @11:44AM (#30734689)
Maybe. It uses the geolocation information Cloudflare provides. In general, it isn't extremely accurate and it doesn't always return the same location, so this doesn't surprise me too much.

If it consistently works in one and not the other (at the same point in time), then the only difference I can think of is that Back Of Your Hand uses their "edge handlers" / "functions" and I made that other URL with their "workers". Hmm.

---

Maybe I could inform the user somehow when it cannot find a location at all. I really want to avoid a browser popup asking for the user's location though

Re:Show HN: A game that tests how well you know your local area by slobotron on Saturday March 19, 2022 @12:00PM (#30734844)
Submitted lino includes hardcoded location, maybe that's what's tripping people up?
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @12:08PM (#30734921)
That's it!

I could've sworn I made sure not to include it when submitting. It does redirect to that if there's no location found so maybe HN updated the link to the redirect destination?

I'm pushing a change now to ignore this specific lat-lng combination and fallback to geolocation

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @12:11PM (#30734945)
Try again please, it should work. See https://news.ycombinator.com/item?id=30734844 for why
Re:Show HN: A game that tests how well you know your local area by AussieWog93 on Saturday March 19, 2022 @11:58AM (#30734827)
Same here. Cloudflare link gives me a pin accurate to a couple of hundred metres, the link in the submission takes me to Ireland.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @12:12PM (#30734954)
Try again please, it should work. See https://news.ycombinator.com/item?id=30734844 for why
Re:Show HN: A game that tests how well you know your local area by ape4 on Saturday March 19, 2022 @11:12AM (#30734393)
That give me a very accurate location! Not using any VPN, etc.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @12:11PM (#30734950)
Re:Show HN: A game that tests how well you know your local area by kfajdsl on Saturday March 19, 2022 @01:03PM (#30735457)
I basically failed because almost all of the selections were random tiny roads in subdivisions (thanks Atlanta sprawl). Got all the roads with thru traffic though!
Re:Show HN: A game that tests how well you know your local area by myself248 on Saturday March 19, 2022 @01:36PM (#30735758)
Oooo.

Longer roads should score more points because they're more important / you're a bigger idiot for missing them? ;)

Re:Show HN: A game that tests how well you know your local area by Kye on Saturday March 19, 2022 @02:45PM (#30736483)
Same area. There's a hundred or more tiny subdivision roads for every major road. It would be better to omit roads under a certain length entirely since it's not reasonable for someone to know all the roads in a subdivision they never have a reason to visit.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @05:57PM (#30737924)
Definitely considering this btw but it might need to be a setting
Re:Show HN: A game that tests how well you know your local area by Jamie9912 on Saturday March 19, 2022 @06:54PM (#30738310)
How much does this cost to run with the whole Mapbox thing?
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @07:06PM (#30738376)
First I used OpenStreetMap tiles (and no Mapbox) but the no-streets one was discontinued. So then I created a custom map layer with Maptiler and used Mapbox-GL because Maptiler's free plan only allows that.

I use Mapbox and Maptiler on the free plan. They both have limits but I haven't ran into them yet. And I've seen a LOT of page views today.

There are probably features I don't use that trigger limits more easily though.

Re:Show HN: A game that tests how well you know your local area by adamlynch on Monday March 21, 2022 @12:00PM (#30755615)
This morning I hit the Maptiler free plan limit. I now pay $30/month for it (annoyingly they don't include sales tax in their displayed prices). I think the limit goes a long way though
Re:Show HN: A game that tests how well you know your local area by l2silver on Saturday March 19, 2022 @04:10PM (#30737138)
I love it! Is there anyway to reduce the search radius?
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @04:23PM (#30737267)
Great! Not yet, but I am looking into it. A lot of the feedback has been around the difficulty and the radius. So I might add difficulty modes and or a way to change the radius.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @12:14PM (#30743904)
For now, I've reduced the circle radius by 20%. I plan to make it adjustable in the future.
Re:Show HN: A game that tests how well you know your local area by iamtedd on Saturday March 19, 2022 @05:43PM (#30737829)
In each of the two games I played it asked for the same street twice, but it's not like there are less than five streets to choose from.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @09:05AM (#30742295)
This can happen (rarely I think) but it will be fixed soon!
Re:Show HN: A game that tests how well you know your local area by Aachen on Saturday March 19, 2022 @12:01PM (#30734856)
Title: s/area/street names/

Was already wondering how this game was going to work, like geoguessr maybe?

Still fun though! Just not what I expected from the name.

Re:Show HN: A game that tests how well you know your local area by loeg on Sunday March 20, 2022 @12:14AM (#30740040)
Dropping a pin directly on the correct street gives a distance of dozens of meters -- what? The street isn't that wide.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @10:05AM (#30742687)
If you could share more info I can look into it. It might be a discrepancy between the OpenStreetMap data and the map I show. Hard to say.
Re:Show HN: A game that tests how well you know your local area by quantumf on Saturday March 19, 2022 @04:50PM (#30737478)
Wow, what a great idea. This is incredibly fun.
Re:Show HN: A game that tests how well you know your local area by code_runner on Saturday March 19, 2022 @12:55PM (#30735384)
Love this! Works great on mobile. Awesome idea.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @01:02PM (#30735449)
Thanks. I'm glad to hear that because I put effort into mobile. I thought it would be my older family members that would like it the most and use it on phones or tablets (I was right)
Re:Show HN: A game that tests how well you know your local area by _michaelll on Saturday March 19, 2022 @10:36AM (#30734061)
Very fun! I managed a score of 450 in the area I grew up in and learned to drive in. Definitely the best case scenario for me.
Re:Show HN: A game that tests how well you know your local area by djhn on Saturday March 19, 2022 @06:51PM (#30738280)
This is great. Works very well for Helsinki.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @06:56PM (#30738324)
I've actually heard that before! Kiitos :)
Re:Show HN: A game that tests how well you know your local area by patrickwalton on Saturday March 19, 2022 @10:12AM (#30733837)
I can't seem to get it to my area. It's in Ireland and I can't find an option to make it go anywhere else.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @10:17AM (#30733891)
Hey Patrick, there are buttons to zoom in & out in the top right of the map. You can then click/tap on any town / anywhere on the map to set the location.

And it'll remember that location next time.

(You can also click and drag the map to move around)

Re:Show HN: A game that tests how well you know your local area by sokoloff on Saturday March 19, 2022 @10:33AM (#30734026)
On iOS, the two finger manipulations (drag and pinch zoom) worked very well, then a single tap to place the game area. I was pleased at how fluid the map manipulation was; nice work!
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @10:39AM (#30734082)
Oh yeah, I forgot about that. Thanks, I was worried something was broken
Re:Show HN: A game that tests how well you know your local area by mgfist on Saturday March 19, 2022 @12:39PM (#30735206)
Living in Manhattan is a cheat code for this
Re:Show HN: A game that tests how well you know your local area by todd3834 on Saturday March 19, 2022 @10:33AM (#30734030)
This worked great in my area. It was hard enough to make it fun but not too hard. I got a score above 90% so I’m stoked
Re:Show HN: A game that tests how well you know your local area by lfx on Sunday March 20, 2022 @08:47PM (#30748654)
Awesome game! Works wonderful for Vancouver, BC.

One thing tho - several times I got the same street 2 times in a row.

Re:Show HN: A game that tests how well you know your local area by adamlynch on Tuesday March 22, 2022 @04:53AM (#30763998)
This is now fixed! (Thanks to a contribution by johrpan)
Re:Show HN: A game that tests how well you know your local area by dawnerd on Saturday March 19, 2022 @07:53PM (#30738672)
Crashes iOS safari when moving the map ~40 miles.

Seems like a great game though, going to check it out in my desktop later.

Re:Show HN: A game that tests how well you know your local area by dawnerd on Sunday March 20, 2022 @01:02AM (#30740282)
Just tried, really fun. Ran into an interesting issue where it gave me the same road twice.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @10:13AM (#30742755)
I'm going to fix this! Any further info would be helpful
Re:Show HN: A game that tests how well you know your local area by ninjachen on Tuesday March 22, 2022 @01:31AM (#30763002)
Thank you! I enjoy it!
Re:Show HN: A game that tests how well you know your local area by khendron on Saturday March 19, 2022 @02:49PM (#30736537)
Why does it insist I live in Cork, Ireland when I live in Canada?
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @03:31PM (#30736867)
There were issues with my hosting provider. Try again and it should be fine. Hard refresh to be safe
Re:Show HN: A game that tests how well you know your local area by noamchomsky1 on Saturday March 19, 2022 @02:01PM (#30736018)
map not loading for me.

latest version of chrome. have tried incognito

Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday March 19, 2022 @02:23PM (#30736272)
Yes but it should be back now? My hosting provider (Cloudflare Pages) seem to have a limit on "functions" I cannot increase. I've worked around it for now but it might open at Cork for everyone. If so, you can zoom out and tap the map to select somewhere else.
Re:Show HN: A game that tests how well you know your local area by Kibranoz on Sunday March 20, 2022 @06:50PM (#30747577)
it asked me twice the same street, so you should probably look up to avoid that I assume cause it’s like free points.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Tuesday March 22, 2022 @04:54AM (#30763999)
This is now fixed! (Thanks to a contribution by johrpan)
Re:Show HN: A game that tests how well you know your local area by HL33tibCe7 on Saturday March 19, 2022 @02:45PM (#30736486)
This is great
Re:Show HN: A game that tests how well you know your local area by cybadger on Sunday March 20, 2022 @08:27AM (#30742093)
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 examples:

(1) A road that runs from southwest to northeast. I placed the pin to the southeast of the road. Eyeballing it, the shortest distance is roughly northeast. The dashed line was drawn 10-15 degrees east of north. If it's significant, it drew to an intersection (not the nearest, but reasonably close).

(2) A road that runs east-west. I placed the pin north of the road by 50-60 meters. The dashed line was drawn 15-30 degrees west of south. It did not draw to an intersection or other point of interest. It may be drawing a ray from the center of the circle of interest.

(3) A road that runs north-south. I placed the pin east of the road by 40-ish meters, near the north edge of the circle. The dashed line was drawn 15-30 degrees west of south (my guess in #2 about a ray from the center was wrong), to an intersection, giving a 102 meter distance.

(4) A discontinuous street. (Replicated for a different street! 4th St and 5th St in Marion, IA, if it helps.) The street runs north-south but has a quarter-ish-mile gap. I placed the pin not far from the southern section of the street. The dashed line was drawn from the pin, past (and nearly parallel to) the southern section, then connected to the southern tip of the northern section. Interestingly enough, the distance looked like it was pin-to-southern-section.

(5) A north-south road in rural Iowa taking advantage of the 1-mile grid. I placed the pin near the center of the circle, slightly less than one mile from the nearest point of the road. It drew the dashed line northwest and showed a distance of 2002 meters. I would have expected due west, and ~1500 meters.

(6) A road that runs north-south (with a bit of southeast a half mile south of the circle), that happened to just barely peek inside the circle on the far west. I placed the pin near the outer edge of the circle, roughly northwest. It drew the dashed line nearly due south (several miles!) but reported a distance of 281 meters.

Sometimes the distances seem reasonable even if the dashed line is drawn to a different point on the road. Sometimes the distances and the dashed lines both seem to be off. Intersections seem to have something to do with it, but there also seems to be something else going on too.

For testing, if you're interested, the intersection of "White Road" and "North Alburnett Road" in Iowa (between Marion and Alburnett) is great. It's sparse, gives you nice straight roads, with just a few driveways and other points-on-polyline to confuse(?) algorithms. If you get C Ave Extension just barely in the circle on the west, that's #6.

And for what it's worth, I had fun trying to figure this out!

Re:Show HN: A game that tests how well you know your local area by adamlynch on Sunday March 20, 2022 @10:25AM (#30742857)
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.
Re:Show HN: A game that tests how well you know your local area by adamlynch on Saturday April 02, 2022 @11:01AM (#30888745)
I've just rewritten this area of the code completely so all of this should be fine now. Thanks again!
Re:Show HN: A game that tests how well you know your local area by vmception on Sunday March 20, 2022 @06:14AM (#30741466)
greater reminder that I need to set up a VPN in a town I know
Re:Show HN: A game that tests how well you know your local area by bussiere on Saturday March 19, 2022 @06:01PM (#30737950)
nice concept :)
Re:Show HN: A game that tests how well you know your local area by Zachsa999 on Saturday March 19, 2022 @08:34PM (#30738861)
Rural players be like.

Find road 27 W

Find road 59 S

Find road 26 W

Find road 59 S

Find road 58 S