adam-lynch / back-of-your-hand

How well do you know your area? Test your knowledge by locating streets with this game.
https://backofyourhand.com
Mozilla Public License 2.0
79 stars 9 forks source link

Feature Request - Map Colors / Quiz Area generation #57

Open mcclaskiem opened 1 year ago

mcclaskiem commented 1 year ago

Hello!

First of all this map quiz tool is amazing. To give some quick backstory I have been a full-stack develop for 10 years now but have recently transitioned into the Fire service full time. With that said, one of the biggest things "probies" or the new guys must do is learn the areas that they respond too down to every road. Finding this tool has been a huge help in learning my district in an easy way without having to drive around all the time.

I was planning on making some tweaks that would make it easier to apply this tool to any fire department that wanted to use it for their staff but was curious if you had any guidance as to how to easily extend the code base.

The biggest change would be the ability to enter a Zip Code or Town name and generate a quiz based off that vs using a point a radius. This would prevent pulling streets that may be over town lines and provide a more focused quiz.

Second would be adapting the colors of the map to add some contrast as the default version can be somewhat hard to see when panning around the map at certain zoom levels.

Any guidance would be awesome and I plan on standing on this project to mess around with the code, thank you again for this awesome tool!

adam-lynch commented 9 months ago

Hey @mcclaskiem!

Sorry, I just cleaned up my inbox and came across this now.

recently transitioned into the Fire service full time

Much respect! I'm glad it helped!

The biggest change would be the ability to enter a Zip Code or Town name and generate a quiz based off that vs using a point a radius. This would prevent pulling streets that may be over town lines and provide a more focused quiz.

I've gotten a lot of requests for it by email and I'm working on it actually. Well, I've been thinking a lot about it recently at least. It's a challenge. I'm trying to figure out the best way to do it, which won't cost me a fortune (since the app is free), will work for a lot of areas, and isn't too slow.

I think the ideal is that the user could search for a place name and it's just there. But I need the data. Once I have the data, I need to decide how to query for the streets within it. Currently, there is the OpenStreetMap query, in-memory post-processing, and caching, but for this feature, that might all need to change 🤔.

Another option is to allow users to draw the area but that could be tedious, error prone, and requires a certain amount of knowledge, which "probies" are less likely to have. If I did it this way, I'd definitely have to make it so these "areas" can be used (and improved) by others.

Sorry this isn't a short answer... I'm still trying to figure out the next steps myself. I'm really proud that the app works globally without a lot of extra effort but maybe I'll have to start area-by-area and figure it out that way. Maybe the best way you can help with this right now is to email me (my email is on my profile) so we can chat specifics about your emergency response area, and try out some experiments.

Second would be adapting the colors of the map to add some contrast as the default version can be somewhat hard to see when panning around the map at certain zoom levels.

For this one, could you please show me an example? I don't have much control over the maps (again because the app is free I have to do things certain ways), but never say never.

rouelibre1 commented 9 months ago

If you want the ultimate tool for the Fire service, how about auto-generation of Anki decks based on the streets of an area ?

(Of implementing spaced repetition directly in a future version of the tool)

adam-lynch commented 9 months ago

Yes @rouelibre1. I've a lot of ideas. I think being able to define and select pre-defined areas will open up a lot of opportunities