polygon-lookup icon indicating copy to clipboard operation
polygon-lookup copied to clipboard

compared to which-polygon

Open andrewharvey opened this issue 4 years ago • 2 comments

A section of the readme which explains how this compared to https://github.com/mapbox/which-polygon would be helpful.

https://github.com/mapbox/which-polygon/issues/15

andrewharvey avatar May 20 '21 10:05 andrewharvey

Hi @andrewharvey, I've not used that Mapbox library but would also be interested in the similarities/differences, would you be up for writing that comparison?

missinglink avatar May 20 '21 23:05 missinglink

Yeah I might work on a comparison, in the mean time I did a benchmark using 15,000 polygons, and 1000 point queries.

library time
pelias/polygon-lookup 19ms
mapbox/which-polygon 19ms
crosscutio/fast-point-in-poly 74,000ms

andrewharvey avatar May 24 '21 09:05 andrewharvey