Lurker News

Comments (257) 78 threads

Earlier comments
JGM_io#
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?

asdfasgasdgasdg2 replies#
Would be cool if bars, restaurants and tourist attractions were added! But a fun little geoguessr like romp either way.
adamlynch#
Thanks for the feedback! Will look into it
myself248#
Yessss, this is what I imagined from the headline. But I suspect the data quality is trash...
et-al1 reply#
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

kovvy1 reply#
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.
adamlynch1 reply#
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
adamlynch#
This is fixed now!
jokoon1 reply#
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.

adamlynch#
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.

Load more comments