Closed adam-lynch closed 2 years ago
Maybe zoom should be a factor in calculating the distance? https://news.ycombinator.com/item?id=30746141
Or I could just zoom in after they drop the pin? 🤔
Edit: this is fixed; #38
0555ef5d7cf1c7d146496888cb9f6cc55306f970 means you now get a 100/100 score if you get within 15 metres.
8a5d2ef908ba73f9709ce4bffecb3a571a572cff factors in the OpenStreetMap width tag when drawing the street. If it exists and is over 10 metres, then the street will be drawn that wide.
This will reduce false negative results for wide streets.
It's not perfect due to how same-named streets are combined. As a first pass I've just averaged the OSM-provided widths.
I'm going to close this issue now. It should be much better after all of these improvements.
There could still be issues like the OSM data and map could not have the street in the same position. There's probably nothing I can do in that case (open to suggestions).
From Hacker News:
- SECProto, https://news.ycombinator.com/item?id=30737042
- jwagenet, https://news.ycombinator.com/item?id=30736171
- jedberg, https://news.ycombinator.com/item?id=30736012