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
[ Parent
| on HN ]
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)
Try https://backofyourhand.com/ again please, it should work. See https://news.ycombinator.com/item?id=30734844 for why